command line tool to normalize exif orientation flag

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: command line tool to normalize exif orientation flag

Jean-François Rabasse

On Fri, 1 Jun 2012, jdd wrote:

>> Should try to copy your image under a different fresh new name, and
>> rstart Digikam to let it get « new image »...
>
> no change (close digikam, change name, open again digikam, no change)
>
> but I could rotate the image in digikam and get it right, with no change in
> exifs (I have the options "write changes in exifs on!"
>
> pretty hard to understand

There's one thing you can do, to be sure of the processing, is to produce
images, large, normal, thumbnail, without any metadata information.
   convert -auto-orient -resize ... -strip <source> <destination>

The -strip option rebuilds a JPEG with only the image related sections,
DQT, DHT, SOF, SOS, ..., without any COM, JFIF, EXIF, APPn sections.

With such images, no viewing software can be influenced by a residual
orientation flag and will display pixels according to the scanlines order.
If your images shows correctly oriented, that means the whole raster is
correct.

Jean-François

PS: I personaly always use that -strip option to build images sets for
web albums, because I don't see the need for EXIF sections in my online
images. Should probably be a matter of personal taste.
(At least for thumbnail images, removing the EXIF section decreases the
file size by over 60%).

PPS: another useful convert option, for web images, is to produce
progressive JPEGs.
Option to add is:  -interlace plane
For large images, and/or visitors having a slow internet connexion, the
visual effect is more pleasant. IMHO
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: command line tool to normalize exif orientation flag

jdd@dodin.org
Le 01/06/2012 19:21, Jean-François Rabasse a écrit :

> convert -auto-orient -resize ... -strip <source> <destination>

yes, it's a good idea, at least as long as no better solution is found

> If your images shows correctly oriented, that means the whole raster is
> correct.

hope so :-)

> PS: I personaly always use that -strip option to build images sets for
> web albums, because I don't see the need for EXIF sections in my online
> images. Should probably be a matter of personal taste.
> (At least for thumbnail images, removing the EXIF section decreases the
> file size by over 60%).

I prefere to have all data online, as an other backup in case all my
other copies are lost :-). And the spent size is unsignificant, but
for our present goal...

>
> PPS: another useful convert option, for web images, is to produce
> progressive JPEGs.
> Option to add is: -interlace plane
> For large images, and/or visitors having a slow internet connexion, the
> visual effect is more pleasant. IMHO

I will try this, thanks

jdd
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
12