-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brandon Stout wrote:
> I sent this message to SLLUG and have not had any responses yet. > Since UPHPU is the best UG out there, I probably ought to have > asked here first, but I generally try to keep my questions here on > web based stuff, and this question is for a Linux-based app. > > Some operations on jpg files can be done lossless-ly. Rotating is > one of them. I've used gwenview for what I think is lossless jpg > operations since when I rotate images, they do not change in file > size at all when other applications, such as Gimp will change the > file size. I've run into a problem though. When I look at my > camera images, gwenview auto-rotates them from the exif data. Most > other programs do not do this auto-rotation, including Gallery, > which I use to put the pictures on the web. I'd prefer to not let > gwenview rotate the images so I can fix the file so all apps can > see the picture the right way. However, gwenview does not seem to > have a setting for it. Actually, gwenview has almost nothing in the > settings I can configure - at least through the gui, only > background color, transparent background, and mouse wheel behavior. > There may be a way to manually configure it in > ~/.kde4/share/config/gwenviewrc , but that still leaves me with a > problem. If I rotate the file, the exif data may then throw off > apps that still use the exif information. Now my question: > > Is there a simple Linux tool that lets me losslessly rotate a > camera image, and change the exif 'orientation' tag - hopefully at > once? > > I'd like it to be in the gui, because I don't see much use in > changing from a gui, which I need to see the picture in the first > place, to a terminal to run a command, then back to a gui which > would then need a refresh. However, if cli is the only way, I'll > give it a try. > > Brandon For anyone that wants to know, I found that you can still rotate with gwenview, and it will change the orientation exif tag while rotating. You just have to make the Orientation tag show on the right side, and anything that says 'right' rotate to the right, and anything that says 'left', rotate to the left. The picture will show up sideways, but save it anyway and refresh. You'll find the picture losslessly rotated. However, I've once again proven myself wrong and found that cli is still faster. There's no need to look at every picture to see if they are sideways when the exif tag tells you anyway. I found exiftran has an option to auto-rotate any pictures according to the exif orientation tag and then fix the tag so it properly shows the correct new orientation. Here's the command: exiftran -agip Pictures/Some/Folder/* The -a is for automatically detecting the rotation. Brandon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkosnDwACgkQx0pgn74qrcJdgQCfUbg9LqFByFU7c6WwAekfCvmg OmIAoIl4w4h+tJ01HNt+9QXjWODc3Gfj =uCYJ -----END PGP SIGNATURE----- _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
