Skip to content

Add wrapper for AutoOrientImage()#22

Open
horgh wants to merge 4 commits intoquirkey:masterfrom
horgh:master
Open

Add wrapper for AutoOrientImage()#22
horgh wants to merge 4 commits intoquirkey:masterfrom
horgh:master

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