Get Exif orientation

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
durumdara
Posts: 19
Joined: Mon Jan 05, 2009 10:32 am

Get Exif orientation

Post by durumdara »

Hi!

I have a Python program that make thumbnails and conversions - and it uses nconvert.

One thing not working with it.

Prev. I used PhotoShop COM, and if I convert the pictures, the orientation corrected to right image direction.

But nconvert not do this, and all of my converted pictures are placed as image data oriented - the EXIF is ignored (as in many mail clients, explorer, etc.).

I search for a way to correct this before I show it. Can I do it with nconvert, or other xnview tool? Or can I get info from picture's exif orientation to rotate it by my program?

Thanks for your help:
dd
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Get Exif orientation

Post by xnview »

You would like to load picture with the good orientation (using EXIF orientation) in NConvert?
Pierre.
durumdara
Posts: 19
Joined: Mon Jan 05, 2009 10:32 am

Re: Get Exif orientation

Post by durumdara »

Hi!

Yes, that is my wish, or get some info from orientation to make pre-rotation in image.
Because data orientation is not same as in Exif, and PIL, and wxPython is not uses the Exif info - so I got images that are not in good direction.

Thanks:
dd
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Get Exif orientation

Post by xnview »

Do you have tried to use -jpegtrans exif (Be careful, works on original file)
Pierre.
durumdara
Posts: 19
Joined: Mon Jan 05, 2009 10:32 am

Re: Get Exif orientation

Post by durumdara »

xnview wrote:Do you have tried to use -jpegtrans exif (Be careful, works on original file)
Hi!

Hmmm... This is really working - in Windows. In Linux I have a problem that website show 5.60 (linux), but the version of the file is 4.51, and this kind of suboption (exif) not supported...

So I'm confused now, please help me!

Thanks:
dd
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Get Exif orientation

Post by xnview »

durumdara wrote:
xnview wrote:Do you have tried to use -jpegtrans exif (Be careful, works on original file)
Hmmm... This is really working - in Windows. In Linux I have a problem that website show 5.60 (linux), but the version of the file is 4.51, and this kind of suboption (exif) not supported...
You don't use the same version of NConvert?
Pierre.
durumdara
Posts: 19
Joined: Mon Jan 05, 2009 10:32 am

Re: Get Exif orientation

Post by durumdara »

Dear Pierre!
You don't use the same version of NConvert?
I cannot use nconvert same version, because:

1.) I opened this page:
http://www.xnview.com/en/download_nc.html

2.) Saw this line:
Linux x86 NConvert v5.60

3.) I downloaded the tgz to my ubuntu.

4.) Opened with default archiver.

5.) Extracted all info to ~/NConvert

6.) started the nconvert

7.) I saw 4.51 - not 5.60.

So may something wrong, and I want to know, what is wrong.
a.) Wrong uploaded archive.
b.) Wrong version text in the nconvert.
c.) Wrong version of the nconvert.
d.) In my side - may the archiver wrong...?

Thanks for your answer and help:
dd
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Get Exif orientation

Post by xnview »

Today there will be a new version of NConvert
Pierre.
Post Reply