ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Wrong DpiX at loading JPG files.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graphman

259 Posts

Posted - Jun 29 2011 :  13:23:58  Show Profile  Reply
I use
ImageEnIO->LoadFromFile
or
ImageEnIO->ParamsFromFile
and see
ImageEnIO1->Params->DpiX = 300
real DpiX = 200

I see the 200 value in AcdSee, FastStone, Corel ...

Why?

fab

1310 Posts

Posted - Jun 29 2011 :  13:35:30  Show Profile  Reply
Please could you post a link to the file?
Go to Top of Page

fab

1310 Posts

Posted - Jun 29 2011 :  15:29:38  Show Profile  Reply
This image has two DPI info stored.
One is inside the jpeg-header and one in the EXIF metatags.
The jpeg-header contains the 200 dpi value, which is the value showed by other programs.
The EXIF metatags contain the 300 dpi value. ImageEn select this value, as you can see.

Because it is more common to select the jpeg-header value then the next release of ImageEn will follow this way also, so it will show 200 dpi as other softwares.
Go to Top of Page

graphman

259 Posts

Posted - Jun 29 2011 :  16:06:51  Show Profile  Reply
Thanks.

New version of ImageEn is not free?
Go to Top of Page

graphman

259 Posts

Posted - Jun 29 2011 :  16:09:51  Show Profile  Reply
How to get the resolution value from header of JPG file? Now?
Go to Top of Page

fab

1310 Posts

Posted - Jun 30 2011 :  01:03:24  Show Profile  Reply
Now it is not possible, I'm sorry. The EXIF-dpi just overwrites the jpeg-headder value on loading.
Go to Top of Page

graphman

259 Posts

Posted - Jun 30 2011 :  04:40:12  Show Profile  Reply
How to get the resolution value from header of JPG file BEFORE LOADING?
Go to Top of Page

fab

1310 Posts

Posted - Jun 30 2011 :  05:10:53  Show Profile  Reply
When I write "on-loading" I include also the case of loading parameters only. So, I repeat, it is not possible.
Of course you can still write your code to read the jpeg header, but this is out of topic, I'm sorry.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: