Forum: Ruby on Rails Getting image size based on header

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C454b8d512cb31c944a47f5a4e1b1dc7?d=identicon&s=25 aldm alert (aldm)
on 2014-05-29 17:28
Hi,

is there any library or gem to get image size (in pixels) based on
image headers. Image headers should contains bytes that describe image
size, which is different for different formats - jpg, png, gif
etc.

This size does not need to be same as actual size of image and this
vulnerabily can be used for attacks:

https://hackerone.com/reports/390
This topic is locked and can not be replied to.