Resolution check in illustrator
How to check the raster image resolution in illustrator through script?
How to check the raster image resolution in illustrator through script?
This seems to solve it: ![]()
// select a rasterItem, no rotation or skew
72/app.selection[0].matrix.mValueA;
// also
72/app.selection[0].matrix.mValueD;
// for rotation applied(no skew) item
var item = app.selection[0],
matrix = item.matrix,
rotation = 180/Math.PI * Math.atan2(matrix.mValueC, matrix.mValueD);
item.rotate(rotation);
alert(72/item.matrix.mValueA);
item.rotate(-rotation);
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.