ruby-imagespec
ruby-imagespec copied to clipboard
A lightweight module designed to extract the width/height dimensions of various image types. Also supports SWFs
when I updated my rails project from ruby 1.9.3 to ruby 2.2.2 I received the error message: 'invalid multibyte escape'.
Right now, any library that has a `Parser` module (like say, https://github.com/whitequark/parser) will collide with this gem. ImageSpec's Parser module should be name-spaced to not collide with other modules name...
Correct regex
I needed the SWF version, so I added the attribute into the SWF parser. Unit test also added. I put my name into credits, but I'm not sure if I'm...
Got this with apache2 / passenger and ruby 1.8.6 and a 1.7 MB swf. ``` /plugins/image_spec/lib/parsers/swf.rb:41: [BUG] Segmentation fault ruby 1.8.6 (2008-03-03) [i686-linux] ``` The segfault happens here, at line...
When a JPEG contains a Exif header, the parser gets into troubles. This bug fix may solve the problem: # in JPEG.rb ``` def self.detected?(stream) stream.rewind case stream.read(10) when /^\xff\xd8\xff\xe0\x00\x10JFIF/...