2

What is the fastest and easiest way to determine the DPI of an image in PHP using either ImageMagick or GD? Although it would be nice to determine the DPI of a wide variety of formats, at the very least, JPEG and PNG should be supported.

Similar questions: How to Check Photo DPI with PHP

JPEG only solution

Community
  • 1
  • 1
gregory
  • 79
  • 2
  • 9
  • possible duplicate of [How to Check Photo DPI with PHP](http://stackoverflow.com/questions/5892731/how-to-check-photo-dpi-with-php) – Ry- May 29 '12 at 01:02
  • The question you linked to tells you exactly how... – Ry- May 29 '12 at 01:02
  • 1
    Resolution (pixels) is not the same as DPI (dots per inch). I need to determine the real world printable size of an image which is Pixels/DPI = inches. – gregory May 29 '12 at 13:45

0 Answers0