Find JPEG resolution with PHP

后端 未结 5 896
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 11:09

Calling all PHP gurus!

I understand that you can use getimagesize() to get the actual pixel height and width of an image in PHP. However, if you open an image in pho

5条回答
  •  臣服心动
    2020-12-28 11:57

    Depending on how the image is saved, EXIF contains a metric crapload of information - Read more about it in the PHP manual. You may need to parse/process the results a bit, however (e.g. the flash info is, or at least has been, just a byte, expressing various states).

提交回复
热议问题