Getting image size based on header

4 views
Skip to first unread message

aldm alert

unread,
May 29, 2014, 11:29:31 AM5/29/14
to rubyonra...@googlegroups.com
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

--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages