How to get image width and height in cm

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

navram
Posts: 20
Joined: Sat May 13, 2006 7:42 pm
Location: India

How to get image width and height in cm

Post by navram »

can any body tell me how can i get image width and height in cm.... now i get it in pixels.... plz help....
MaierMan
Posts: 78
Joined: Wed Aug 04, 2004 8:32 pm

Re: How to get image width and height in cm

Post by MaierMan »

navram wrote:can any body tell me how can i get image width and height in cm.... now i get it in pixels.... plz help....
hmm... not quite sure.
Actually It should be px / dpi * ci.
ci means a constant describing "cm : inch" which is 2.54 : 1 (as dpi = dots/px per inch).

example:
2000px / 300dpi * 2.54 ~ 16,93cm

(hm... math correct? :p)
navram
Posts: 20
Joined: Sat May 13, 2006 7:42 pm
Location: India

Thanks....

Post by navram »

Thank u 4 ur reply.... i think it works....