Stephen Sykes
406c2a5734
Remove fiber require - not needed after all
2017-02-22 23:50:09 +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
c89f556204
Fix protocol relative redirects, make new URI object if needed
2017-02-22 19:28:35 +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
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
Bert Goethals
13b0244968
Improve parse_type UnknownImageType detection
...
In case of 'ice' file type when neither 1 or 2 is found it should raise ```UnknownImageType``` but it didn't, probably due to the method not being 100% DRY.
This commit fixes both issues at once
2016-10-17 17:10:38 +02:00
Stephen Sykes
c99b127d1b
Add skip mechanism, to not read skipped bytes into memory. Fixes #70
2016-06-07 10:49:40 +03: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
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