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
 How to get jpg file DPI
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

kowal

Poland
57 Posts

Posted - Nov 23 2025 :  15:43:11  Show Profile  Reply
Hello,
I'd like to use images of different DPI in my application and print them in correct scale.
But can'not read DPI for attached jpg file.
The file is a screenshot I got from Google map.

The Windows 11 properties window shows the DPI for it = 96.
But in my application I see 300.

my code is like this

iPor.IO.LoadFromFileAuto (pliktlo) ;
showMessage ( inttostr( iPor.IO.Params.DPI )) ;

And I get the message "300"

regards
S. Kowalski



xequte

39298 Posts

Posted - Nov 23 2025 :  21:52:14  Show Profile  Reply
Hi

This is a PNG file rather than a JPEG. When I test it, I get 96 DPI in ImageEn.

Can you call:

IEGlobalSettings().CopyIEStatusToClipboard();

And paste the result into a reply?

http://www.imageen.com/help/TIEGlobalSettings.CopyIEStatusToClipboard.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kowal

Poland
57 Posts

Posted - Nov 24 2025 :  08:18:45  Show Profile  Reply
Hi,
I have some problem calling it despite I have unit iesettings declared
in the line
IEGlobalSettings.CopyIEStatusToClipboard();
I get the message:
[dcc32 Error] uiePOR.pas(3807): E2003 Undeclared identifier: 'CopyIEStatusToClipboard'

But in the same unit I have other calls like
IEGlobalSettings().DefaultMeasureUnit := ieuMeters;
and this compiles ok

S.Kowalski

Go to Top of Page

xequte

39298 Posts

Posted - Nov 24 2025 :  15:53:17  Show Profile  Reply
OK, you might be using an older version of ImageEn.

Can you clarify whether this is a 32 or 64bit application?

If 64bit, have you added ielib64.dll to your EXE folder?

What is the value of ActivePNGEngine:

http://www.imageen.com/help/TIEGlobalSettings.ActivePNGEngine.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kowal

Poland
57 Posts

Posted - Nov 25 2025 :  10:09:55  Show Profile  Reply
This is the information from version.txt file
ImageEn 13.7.0 Packages
Version : 13.7.0.5461
Date : 2024/1/21
Target : Delphi 10.4 Sydney 32bit
Should I install update?
S.Kowalski
Go to Top of Page

xequte

39298 Posts

Posted - Nov 25 2025 :  14:42:01  Show Profile  Reply
Yes, please install the update and let me know if you still see the issue.

http://www.imageen.com/help/Updating_and_Compatibility.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kowal

Poland
57 Posts

Posted - Nov 28 2025 :  09:39:50  Show Profile  Reply
Hi,
I installed the v.14.2.7 and have no error in compiler in the line
IEGlobalSettings.CopyIEStatusToClipboard();

but in the runtime I get the error message
"A required library file iepdf32.dll is older than the minimum supported version the v.140.0.7249"
and finally the
showMessage ( inttostr( iPor.IO.Params.DPI )) ;
displays 300 DPI

May be the reason is the lack of requested dll version, but I can not find the iepdf32.dll in the download page

S.Kowalski

Go to Top of Page

kowal

Poland
57 Posts

Posted - Nov 28 2025 :  12:48:26  Show Profile  Reply
I'd like to correct my previous message:
when I added to my project the line:
, ieNativeJPEG, ieNativePNG, ieNativeJ2K // Important Compatibility Information (from v14.2.0)

for this test.jpg
- the DPI I get is 120 DPI
- the Windows file details information show 96 DPI
- the Paint application image properties show 120 DPI - as in my project

and I still have the message:
"A required library file iepdf32.dll is older than the minimum supported version the v.140.0.7249"

S.Kowalski


Go to Top of Page

xequte

39298 Posts

Posted - Nov 30 2025 :  15:59:47  Show Profile  Reply
Hi

In the folder that you installed ImageEn, there is a folder named \DLL\. You will find the latest version of the ielib dll in that folder.

https://www.imageen.com/help/ImageEn_DLLs.html

I find it best to create a script that automatically update all DLL in all locations after installing an update.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: