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