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
 How to get jpg file DPI

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
kowal Posted - Nov 23 2025 : 15:43:11
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



8   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 30 2025 : 15:59:47
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
kowal Posted - Nov 28 2025 : 12:48:26
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


kowal Posted - Nov 28 2025 : 09:39:50
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

xequte Posted - Nov 25 2025 : 14:42:01
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
kowal Posted - Nov 25 2025 : 10:09:55
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
xequte Posted - Nov 24 2025 : 15:53:17
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
kowal Posted - Nov 24 2025 : 08:18:45
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

xequte Posted - Nov 23 2025 : 21:52:14
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