Advertisement
Guest User

AR Script: Resolution to centimeters

a guest
Nov 7th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (item.exifToolValue("ResolutionUnit") == "inches") {
  2.   return item.name + String((ExifInt("ImageWidth") / ExifInt("XResolution") * 2.54).toFixed(2)) + "x" + String((ExifInt("ImageHeight") / ExifInt("YResolution") * 2.54).toFixed(2));
  3. }
  4. else
  5. {return item.name}
  6.  
  7. function ExifInt(tag) {
  8.   return parseInt(item.exifToolValue(tag))
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement