Answered
How do we get the Pixel/Centimeter information ImageSize window [through Javascript]
Hi Everyone!,
Is this possible to get Pixel/Centimeter information ImageSize window through JavaScript?
Thank in Advance

Hi Everyone!,
Is this possible to get Pixel/Centimeter information ImageSize window through JavaScript?
Thank in Advance

You can do it like this
//activeDocument.save(); // must be saved to force update metadata
var xmp = new XML(activeDocument.xmpMetadata.rawData);
var s = String(eval("xmp.*::RDF.*::Description.*::ResolutionUnit"));
if (s == "3") alert("cm")
if (s == "2") alert("inch")
upd. I don't seem to understand again. I am groot .... : )
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.