54 Commits

Author SHA1 Message Date
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
Stephen Sykes
f2f64f8933 Force encoding as needed. Works correctly in ruby 1.9.3 2012-03-22 21:50:31 +02:00
Stephen Sykes
4cb393643b Fix coding for proper operation on later rubies 2012-03-22 19:43:53 +02:00
Stephen Sykes
ef54dee44f Adds documentation for changes, bump version to 1.2.10. Fixes #4 2012-03-22 18:00:45 +02:00
Stephen Sykes
34ce278d61 Handle up to 4 redirects in http fetch code, tests for it 2012-03-22 17:56:26 +02:00
Stephen Sykes
cc7ac3f084 Fixes link to jpeg code on pennysmalls 2012-03-22 16:55:45 +02:00
Stephen Sykes
d007cb4df6 Adds reading from an IO object 2011-09-30 10:43:31 +03:00
Stephen Sykes
ab2efbf2ff Fix for bug where 0xff is followed by second 0xff in jpg 2010-11-11 01:29:22 +02:00
Stephen Sykes
7fb2e5787d Fix for files in local directories that have spaces in the names 2010-07-14 12:51:00 +03:00
sdsykes
7342bc58f0 Add changes omitted in last commit 2010-05-08 18:01:38 +03:00
sdsykes
0a8b9a7f61 Catch HTTPBadResponse and EOFError - closes issue#1 2010-04-01 09:40:19 +03:00
sdsykes
01d2005b4b Work around for ruby 1.8.7p248 bug in net/http 2010-02-23 10:46:58 +01:00
sdsykes
289c133325 Fix for ruby 1.9 2010-02-16 11:28:22 +02:00
sdsykes
bef531fb33 Change symbol for jpeg to :jpeg rather than :jpg so it can be used in a mime type string. 2009-09-16 17:49:31 +03:00
sdsykes
1ff23ae490 Fix bug causing exception when fetching type when raise_on_failure is set
Mod tests to catch that code path
2009-06-25 17:02:47 +03:00
sdsykes
c3ae53bc78 Documentation updates.
Minor refactoring.
2009-06-25 13:15:46 +03:00