Convert, Edit, and Compose Images
fmw42 wrote:Suggest you do a single image test with convert and see if that works. If so, then the issue is with the old mogrify. If so report it as a bug in the Bugs forum. Barring a fix, you can, I believe, use exiftool to update the exif information (outside of IM).
You can check your image to see about the orientation using string formats for exif tags. see http://www.imagemagick.org/script/escape.php
convert image -format "%[exif:orientation]" info:
I believe is the syntax.
fmw42 wrote:when using exec in PHP, one often has to provide convert or mogrify with the full path to it. So for example when I use PHP I have to use
exec('/usr/local/bin/convert ... ')
Some external tools that work with PHP/IM, also need to know where IM resides, but you may not be able to provide that to them unless as above.
to find out where IM resides for use with PHP.
southbayriders wrote:When I use the following command to auto orient pictures, the picture is correctly oriented, but the Exif data is not updated.
- Code: Select all
mogrify -auto-orient -quality 80% /home/path/to/my/picture.jpg
jhead -autorot /home/path/to/my/picture.jpg
anthony wrote:Asside from the solution about PHP execution paths. The above is a BAD idea!
Drarakel wrote:Lossless JPG rotation doesn't degrade the quality, but it won't work without problems for some files (files that have partial JPG blocks). If you have such files, jhead, for example, might move the right and/or lower border to the opposite side. That might look odd.
Users browsing this forum: Bing [Bot], Google [Bot], Google Adsense [Bot], Lumo and 16 guests