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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Wrong DPI returned by ImageEn

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
mastinf Posted - Jan 12 2026 : 05:43:48
Hello

i use the following code to read DPI of an image file:



procedure GetDPIImageFile(fn:string;var dpix,dpiy:integer);
var
  img:Timageenview;
  ff: TIOFileType;
begin
  img:=Timageenview.create(nil);
  try
    ff := FindFileFormat( fn, false );
    img.IO.ParamsFromFile( fn, ff );

    dpix:=img.io.params.dpix;
    dpiy:=img.io.params.dpiy;
  finally
    img.free;
  end;
end;



it usually works but have images (one is attached) where the DPI read by imageen is not correct.

The correct DPI is 200 (visible in Windows properties). ImageEn returns 300 DPI

My ImageEn version is old: 13.7.0 and i see that the trial version is older (11.0.1)

Could you check if this happens also in the latest version of ImageEn ?

Thanks



Roberto Nicchi
Master Informatica
Italy
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 12 2026 : 13:55:34
Hi Roberto

This image does not have embedded DPI information so falls back to the EXIF resolution which is 200. This might not be supported in old versions of ImageEn.

Nigel
Xequte Software
www.imageen.com
mastinf Posted - Jan 12 2026 : 07:24:17
I have found that in the compiled demo app (AllComponents.exe) in the last page (TIEMetaListView) the resolution detected for the image is correct (200 DPI). So is there a bug in my ImageEn version ? Or maybe my code is not correct ?

thanks

Roberto Nicchi
Master Informatica
Italy