81 Commits

Author SHA1 Message Date
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
Stephen Sykes
67d2368176 Drop dead link 2016-03-24 18:33:44 +02:00
Stephen Sykes
e54e1e0b23 Remove support for 1.8.7, bump major version 2016-03-24 18:12:48 +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
3c0c290ac8 Fix grammar erros, add info about headers to rdoc 2015-11-13 11:07:29 +02:00
andfx
ad567ff0da Support additional HTTP headers 2015-11-09 21:10:16 +01:00
Stephen Sykes
308e20cf45 More doc, set content_length earlier 2015-05-12 14:40:53 +03: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
035ebe3ed6 Add read_string_int method to StreamUtil 2015-04-30 21:45:46 +07: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
Forrest Ye
5ebae8ea3b add options[:proxy] as a per request proxy config 2015-03-04 15:35:34 +08:00
Forrest Ye
8f9a740367 clean up whitespace 2015-03-04 15:21:32 +08:00
Stephen Sykes
a63c1d34d4 Merge branch 'master' of github.com:sdsykes/fastimage 2015-02-28 23:25:48 +02:00
Stephen Sykes
617449d4b5 Stop using openuri to open non http strings 2015-02-28 23:25:31 +02:00
Kunal Shah
d05ea84b5d Silence already initialized constant warnings for apps/environments with live reloads 2015-01-09 00:23:06 -05:00
Stephen Sykes
82d3525f40 Documentation updates 2015-01-07 12:15:28 +02:00
Stephen Sykes
ea0c36abea Adds webp support 2015-01-06 22:00:28 +02:00
Stephen Sykes
433c891313 Adds require zlib so old rubies work 2014-12-05 14:41:21 +02:00
Stephen Sykes
e534d26352 Remove unused exception 2014-12-05 14:21:27 +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
492b5c2840 Documentation and example fixes for ico format 2014-10-24 11:52:44 +03:00
Adam Panzer
9e0258548a fix tests for 1.8.7 2014-10-22 15:05:51 -07: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
79160a9963 Adds support for passing Pathnames in 2014-06-12 10:49:43 +03:00
Stephen Sykes
327a3b55cd Remove parsing of IFDs other than IFD0 in EXIF, IFD0 should have everything needed. Caused incorrect orientation in certain jpegs 2014-04-29 00:18:46 +03:00
Stephen Sykes
e863cfe1ba Fix compat with 1.8.7 2014-02-28 14:56:45 +02:00
Stephen Sykes
574c890024 Fixed doc for FastImage.size, mention PSD 2014-01-29 22:19:49 +02:00
Stephen Sykes
6d2508d9d3 Adds nodoc for internal classes 2014-01-29 22:10:47 +02:00
Stephen Sykes
19b982592e Documents marcandre's psd changes 2014-01-29 21:53:52 +02:00
Marc-Andre Lafortune
3bd07419d7 Support for PSD 2014-01-29 14:08:30 -05:00
Marc-Andre Lafortune
8e79e3d052 JPEG exif parsing can now fail gracefully 🎉 2014-01-29 10:07:22 -05:00
Marc-Andre Lafortune
622131a9ea Rename bytes_delivered -> pos 2014-01-29 10:00:18 -05:00
Marc-Andre Lafortune
12aba0b624 Isolate Exif parsing 2014-01-29 09:58:58 -05:00
Marc-Andre Lafortune
16487f7512 move get_byte, get_int into module 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
a909410cdd - get_chars 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
77670ff6d4 - peek_chars 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
0c613a441d Encapsulate reading in a new class 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
e0ba178869 Simplify 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
c9c0223726 Remove unused instance variable 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
eded5ed0e6 Simplify dealing with encoding 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
55ea8ad49d Create peek_chars to avoid writing to strpos/bytes_delivered 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
60924acde6 Small refactor of read_int -> get_int 2014-01-29 09:51:32 -05:00
Marc-Andre Lafortune
a47cd09dca Remove trailing spaces 2014-01-29 08:28:03 -05:00
Colin Mitchell
606dd34690 handle negative height bitmaps and ensure that we read in bmp dimensions as signed ints 2013-12-10 10:06:27 -05:00
Stephen Sykes
bad3608afd Use Addressable's inferred_port instead of port so that SSL works. Fixes #23 2013-11-14 10:01:32 +02:00