Forum: Ruby on Rails Getting image size based on header

C454b8d512cb31c944a47f5a4e1b1dc7?d=identicon&s=25 aldm alert (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:
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.