[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Parse*Geometry methods #304

Merged
merged 6 commits into from
Feb 16, 2024
Merged

Add Parse*Geometry methods #304

merged 6 commits into from
Feb 16, 2024

Conversation

beetlebugorg
Copy link
@beetlebugorg beetlebugorg commented Feb 13, 2024

The geometry parse methods provide a way to parse geometry such as "100x100+10+0" or "100x100!".

If you've ever used magick convert -resize (or convert -resize), these methods are called internally.

Imagemagick provides really good documentation on the Image Geometry format.

This required changing the implementations of GeometryInfo and RectangleInfo to match their C struct counter parts.
imagick/geometry.go Show resolved Hide resolved
@justinfx justinfx merged commit 4468b5b into gographics:im-7 Feb 16, 2024
1 of 2 checks passed
@justinfx
Copy link
Member

Thanks for the changes!

@beetlebugorg beetlebugorg deleted the feature/parsegeometry branch February 17, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants