Re: The orientation attribute and -orient command
Bob Friesenhahn <[email protected]> Wed, 22 May 2013 08:29:28 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.tools |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 20 May 2013, hack bear wrote: > Hi, > > I just want to use GM to rotate the image's orientation and update the EXIF Orientation attribute. I can get the image > rotated using -rotate. It seems that there is no way to set or remove the orientation attribute. Hopefully I can do it > without involving another external process (I'm driving GM from the gm4java tool in batch mode.) What's the advice for doing > that? When will GM start attaining some EXIF capability like ImageMagic? > > Also I'm not sure exactly what the -orient command does. I tried it and it didn't seem to have an effect: The -orient option sets the current orientation. The -auto-orient command adjusts the image so that it is upright based on its current orientation. GM does not yet edit EXIF tags. Since orientation may be stored in an EXIF tag the EXIF tag may become incorrect. Someone did post some code for updating the EXIF orientation tag in GraphicsMagick but they did it in the bug report text area rather than submitting a proper patch. There are only a few EXIF tags that GM really needs to update (orientation being on of them, as well as resolution). My time/energy for working on GraphicsMagick is less than usual at the moment (due to day job) so I have been focusing on core performance issues or issues which personally interest me. GraphicsMagick is an open source project so anyone with programming talents is free to study the source and develop a patch to add missing features. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may