Rotace JPEGu podle EXIFu
Ladislav Dobias
Lada na Dobias.info
Pátek Leden 16 09:42:28 CET 2009
Ahoj,
On Mon, 12 Jan 2009, Frantisek Boranek wrote:
> Az to fyzicky otočíte tak se dočkáte překvapení, až tyto fotky otevrete právě
> v takovém inteligentním prohlížeči a on vám je zase položí. Reseni bude
> vypnout tuto funkci v prohlizeci nebo zmenit Exif udaje ve fotkach napr
> pomoci exiftool.
myslim, ze tato manualni zmena neni potreba, protoze to
jhead dela sam. Ja pouzivam:
jhead -autorot -n -ft -exonly *jpg
-n the file will be renamed to MMDD-HHMMSS
-ft Sets the file's system time stamp to what is stored
in the Exif header.
-exonly Skip all files that don't have an Exif header.
-autorot
Using the 'Orientation' tag of the Exif header, rotate the
image so that it is upright. The program jpegtran is used
to perform the rotation. This program is present in most
Linux distributions. For windows, you need to get a copy of
it. After rotation, the orientation tag of the Exif header
is set to '1' (normal orientation). The thumbnail is also
rotated. Other fields of the Exif header, including
dimensions are untouched, but the JPEG height/width are
adjusted.
Snad to pomuze.
Zdravi
Lada
>
> exiftool -overwrite_original -orientation=horizontal Pc29103014_H_test.jpg
> 1 image files updated
>
> exiftool -Orientation Pc29103014_H_test.jpg
> Orientation : Horizontal (normal)
>
> exiftool -overwrite_original -orientation='Rotate 90 CW' Pc29103014_H_test.jpg
> 1 image files updated
> exiftool -Orientation Pc29103014_H_test.jpg
> Orientation : Rotate 90 CW
>
> --
> S pozdravem
> František Bořánek
> icq# 249414454
>
> Dne Sunday 11 of January 2009 22:48:42 Jan Kasprzak napsal(a):
>> muj fotak ma v sobe akcelerometr, takze pozna ktere fotky jsou foceny
>> "na vysku". Tohle pak ulozi do snimku zrejme nejak do EXIFu, a nektere
>> programy pak ten snimek zobrazi otoceny (i kdyz fyzicky otoceny neni).
>> Bohuzel to neumi vsechny, takze bych potreboval umet z prikazove radky
>> udelat operaci "otoc fyzicky JPEGy tak, jak je poznaceno v jejich EXIFu".
>
>
> _______________________________________________
> Linux mailing list
> Linux na linux.cz
> http://www.linux.cz/mailman/listinfo/linux
>
Další informace o konferenci Linux