Forum: Ruby on Rails Getting image size based on header

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
27400797050f4c5763ebbb1d7ffa7607?d=identicon&s=25 aldm a. (aldm)
on 2014-05-29 17:28

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

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