69 Commits

Author SHA1 Message Date
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
Benjamin Jackson
3a2eb31b06 Switched to using Addressable for URI parsing due to issues with hostnames that contain underscores.
Cf. http://www.cloudspace.com/blog/2009/05/26/replacing-rubys-uri-with-addressable/
2013-10-26 11:49:24 -04:00
Stephen Sykes
151a770b87 Fixes #20 Unable to handle permanent redirection, for redirects that have relative urls 2013-09-19 19:20:43 +03:00
Stephen Sykes
63b97f7ef0 Fixes infinite loop with certain jpegs, adds test. Fixes #19. 2013-09-17 18:26:52 +03:00
Stephen Sykes
9069b53408 Merge branch 'master' of https://github.com/sdsykes/fastimage 2013-07-03 00:00:01 +03:00
Stephen Sykes
5ecaac4179 Take account of the exif orientation flag for tiff and jpegs that have it 2013-07-02 23:58:25 +03:00
Sebastian Ludwig
d3c748a74d Fixed exception when getting the properties of IO objects twice (by rewinding when done) 2013-05-23 15:36:17 +02:00
Stephen Sykes
bed58919a8 Adds tiff support, including rewrite of data fetch much improved using fibers 2013-05-08 16:34:19 +03:00
Taylor Luk
181254e72e Work around Ruby 2.0 Net::HTTP gzip inflation bug by disableing gzip support see
- https://github.com/sparklemotion/mechanize/issues/275, 
 - https://bugs.ruby-lang.org/issues/7831 
 - http://ruby-doc.org/stdlib-2.0/libdoc/net/http/rdoc/Net/HTTP.html#label-Compression
2013-05-08 18:59:51 +10:00
Stephen Sykes
60029518e1 Revised url for pennysmalls reference, posterous is shutting down shortly. 2013-04-18 15:55:01 +03:00
Felix Bünemann
99ea9a6273 Force input stream binary encoding
This fixes #11 where fakeweb returns non-binary encoding.
I've also replaced a clunky if/else with a more elegant case
statement.
2013-04-18 00:24:56 +02:00
Stephen Sykes
93a8b313c2 Use proxy if it exists 2013-03-19 10:19:23 +02:00
Stephen Sykes
a25363e5bb Correctly break out of http fetches to ensure fast return 2013-03-07 09:26:29 +02:00