[Comm] Массовый convert графических файлов
Alexander Yereshenko
=?iso-8859-1?q?ave4600_=CE=C1_mail=2Eru?=
Вс Июн 24 23:17:59 MSD 2007
Доброе!
В сообщении от Tuesday 15 May 2007 13:37:38 Alexander Yereschenko написал(а):
>
> Тоже оценил мощность консольных утилит из ImageMagic...
> Попутно еще вопрос: Есть возможность одним махом повернуть изображениев
> нужную сторону в зависимости от тэга в jpeg-файле "Exif:Orientation" ? Или
> все-таки придется скриптом анализировать тэг и потом поворачивать в нужную
> сторону?
>
Отвечаю сам себе :)
Утилита jhead
jhead -autorot <filename>
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. This feature is especially useful with newer Canon cameras, that
set the orientation tag automatically using a gravity sensor.
--
Alexander
Подробная информация о списке рассылки community