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 wrapper for AutoOrientImage() #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

horgh
Copy link

@horgh horgh commented Nov 16, 2016

I added a new public function to the Image type to call the MagickCore API function AutoOrientImage().

I noticed there is an open issue, #13, which asks for this too.

I've used it and added tests and it works well. Specifically why I wanted it is I found some JPGs I have to not display with the correct orientation when placed in HTML.

Please let me know if you would like me to change anything.

Thank you!

I call the wrapper function AutoOrient().
This emulates the +repage command line argument. This is useful to call
after cropping.

For more information about this, see
http://www.imagemagick.org/script/command-line-options.php#repage and
http://www.imagemagick.org/Usage/crop/#crop_page
Also add a test demonstrating PlusRepage(). To do this I add functions
to access the virtual canvas information.
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.

1 participant