Stefano Verna
58dcc3072f
HEIC/HEIF format detection
2021-03-02 15:07:12 +01:00
Fabrizio Monti
fcf871e637
Identify svg files that start with white spaces
2021-02-16 10:26:31 +01:00
Bianca Nenciu
e4c35d951e
Add an animated GIF without a global color table
2021-01-27 22:03:06 +02:00
PikachuEXE
45521bfd3e
Fix handling of redirect response without Location header
2020-06-18 11:56:03 +08:00
Stephen Sykes
8386e11db4
Update url for large image to https
2020-06-14 12:02:16 +03:00
Stephen Sykes
967737b844
Merge pull request #114 from nbianca/master
...
Add API to check if a GIF is animated
2020-06-14 11:39:32 +03:00
Bianca Nenciu
df31108b00
Add check for animated GIFs
2020-06-12 15:00:26 +03:00
Gerhard Schlager
2e0436c58f
Avoid detecting arbitrary XML as SVG
2020-05-26 16:53:50 +02:00
abcang
6f548c5509
Supports various bitmap headers
2019-09-05 14:43:11 +09:00
Yahor Zhylinski
3c5971e5b4
Handle Errno::ENETUNREACH exception
2019-03-13 09:21:07 +03:00
Dmitry Borisov
11ca295071
Should work for readed ios
2018-11-29 13:15:28 +03:00
Stephen Sykes
aa097226e8
Avoid detecting CR2 and CRW as tiff. Use own fakeweb. Fixes #104
2018-09-09 22:39:40 +03:00
Stephen Sykes
15bc4111c4
Only escape location in redirect if needed. Fixes #103
2018-05-08 22:12:16 +03:00
Stephen Sykes
a6222c47a5
Merge pull request #101 from Nakilon/master
...
unescaped space symbol in redirect caused URI::InvalidURIError
2018-05-01 14:45:51 +03:00
Stephen Sykes
15f3e95b25
Only pay attention to first APP1 segment for orientation. Fixes #102
2018-05-01 14:39:10 +03:00
Victor Maslov
abccdd1365
unescaped space symbol in redirect caused URI::InvalidURIError
2018-04-25 22:48:36 +03:00
Victor Maslov
1be9e5cd7a
better redirect handling
2018-04-04 17:09:14 +03:00
Stephen Sykes
0cef2a777c
Fix content_length for data uris, add test
2017-12-18 12:14:26 +02:00
Stephen Sykes
35d365565f
Fix underscore test to be hosted at github
2017-12-18 11:44:28 +02:00
Régis Hanol
2b4b69d80e
add support for doctype in SVG
2017-08-07 10:14:37 +02:00
Tim Craft
ec1632b8ef
Remove rubygems require from test.rb
2017-06-17 12:32:22 +01:00
Stephen Sykes
0adc60812c
Use viewbox if width and height are not present in svg. Fixes #76
2017-02-23 21:35:14 +02:00
Stephen Sykes
bd150b54af
Fix parsing for svg with longer preamble
2017-02-22 23:47:56 +02:00
Stephen Sykes
ab07d1fe21
Set content length for local files. Fixes #77
2017-02-22 22:59:30 +02:00
Stephen Sykes
955d77a7e9
Merge pull request #78 from dennyac/handle-protocol-relative-uls
...
Handle protocol relative urls
2017-02-22 18:54:34 +02:00
Stephen Sykes
bc43e8b570
Fix missing end
2017-02-22 18:17:22 +02:00
Stephen Sykes
b8e0bd7afb
Merge branch 'master' into master
2017-02-22 08:13:37 -08:00
Stephen Sykes
31042836d4
Remove addressable, include patch for older ruby versions than 2.2
2017-02-22 17:41:55 +02:00
Denny Abraham Cheriyan
88e2098d65
Handle protocol relative urls
2017-02-12 15:55:32 -08:00
Juan Schwindt
cbc17cbf69
Add support for Data Uri Scheme
2016-12-27 21:48:23 -03:00
Stephen Sykes
a0808275f8
Add test for invalid ico files
2016-11-03 12:29:20 +02:00
Michiel de Wit
2453c60d6e
For ICO files, return the largest size (by number of pixels) rather than the size of the first icon
2016-04-18 21:08:26 +02:00
Janko Marohnić
04d1030756
Always rewind the given IO
...
When an error occured when extracting dimensions, rewinding would be
skipped and the code would jump straight to "rescue" statements. We want
that the IO is always rewinded, even in case of errors.
Note that this doesn't affect the return value of the method, because
the return value of a method-level "ensure" is always ignored by Ruby.
2016-03-08 21:09:42 +07:00
Stephen Sykes
f3ee9eeace
Adds orientation reader and tests
2016-02-13 23:47:11 +02:00
Jeremy Venezia
4c1905fd66
raise UnknownImageType when file is non-svg xml
2015-12-01 17:49:05 +01:00
Stephen Sykes
013cd81ddb
Merge pull request #52 from lulalala/file_size
...
Add reader for request header content-length
2015-05-12 14:25:46 +03:00
lulalala
fe5b4d7f04
Add reader for request header content-length
2015-05-11 20:05:14 +08:00
Kiki Luqman Hakiem
39d9dfbf05
Handle partial viewport attribute
2015-04-26 03:14:04 +07:00
Kiki Luqman Hakiem
605bdc9452
Add support for SVG
2015-04-25 03:47:28 +07:00
Stephen Sykes
36464d3bbc
Use old syntax so old rubies can pass tests
2015-03-05 21:23:40 +02:00
Forrest Ye
5ebae8ea3b
add options[:proxy] as a per request proxy config
2015-03-04 15:35:34 +08:00
Forrest Ye
01af8e520e
clean up whitespace in test.rb
2015-03-04 15:31:11 +08:00
Stephen Sykes
617449d4b5
Stop using openuri to open non http strings
2015-02-28 23:25:31 +02:00
Stephen Sykes
ea0c36abea
Adds webp support
2015-01-06 22:00:28 +02:00
Stephen Sykes
cef7cae610
Does gzip decompression if the server sends compressed files. Closes #42 .
2014-12-05 14:13:58 +02:00
Stephen Sykes
2b531a801c
Remove unused test image
2014-10-24 12:03:50 +03:00
Adam Panzer
18d0908eeb
pr feedback
2014-10-22 08:40:24 -07:00
Adam Panzer
b7aa051e8f
detect ico type
2014-10-21 21:42:26 -07:00
Stephen Sykes
8c2258a747
Added specific test for stringio
2014-10-07 10:25:56 +03:00
Stephen Sykes
79160a9963
Adds support for passing Pathnames in
2014-06-12 10:49:43 +03:00