Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Digital Photography > Re: Imagemagick and orientation tag

Reply
Thread Tools

Re: Imagemagick and orientation tag

 
 
Ofnuts
Guest
Posts: n/a
 
      02-16-2011
On 02/15/2011 09:28 PM, Alfred Molon wrote:
> How to set up the resize command of imagemagick (i.e. "convert -size 400
> x 300 image.jpg -resize ....") so that it correctly rotates images with
> an orientation tag?
>
> In other words, if you have a vertical image to resize for the web,
> imagemagick should recognise the orientation tag and rotate vertical
> images. How to do that with imagemagick?


Use the -auto-orient function of convert, which does just that, ie:

convert -size 400> x 300 image.jpg -resize -auto-orient ....
--
Bertrand
 
Reply With Quote
 
 
 
 
Ofnuts
Guest
Posts: n/a
 
      02-17-2011
On 02/16/2011 11:04 PM, Alfred Molon wrote:
> In article<4d5c36ae$0$25000$(E-Mail Removed)>, Ofnuts says...
>
>> Use the -auto-orient function of convert, which does just that, ie:
>>
>> convert -size 400> x 300 image.jpg -resize -auto-orient ....

>
> That works, but the only problem is that it positions the copyright logo
> incorrectly. To insert a copyright logo I add this to the convert
> command:
>
> -draw "image Over px,py logox,logoy logo.png"
>
> where logox and logoy are width and height of the logo, and px and py
> are the position of the bottom left corner of the logo.
>
> I guess I simply have to swap px and py depending on the orientation
> tag. Can this be arranged automatically with the orientation command or
> do I have to read out the orientation tag from the exif?


Do you auto-orient before the draw or after? Otherwise I would try a mix
of -gravity and negative coordinates.
--
Bertrand
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exif orientation tag on Olympus cameras Luis Santos Digital Photography 7 06-02-2006 05:36 PM
Orientation EXIF tag value Jerry West Digital Photography 3 02-16-2006 02:51 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Q: Nikon 8800 EXIF orientation tag ? Iain Lea Digital Photography 1 06-08-2005 07:08 PM
<FORM METHOD="post" onSubmit="return fieldcheck()" name="orientation" action="http://ws-kitty.BU.edu/AT/survey/orientation/script/write.asp" language="JavaScript"> Joeyej ASP .Net 0 06-04-2004 07:55 PM



Advertisments