312 Commits

Author SHA1 Message Date
Stefano Verna
50b1631ae9 Prefer if modifier to postfix or condition 2021-03-15 08:48:47 +01:00
Stefano Verna
cd3ee0a624 Compat: %i[] is not available on Ruby 1.9 2021-03-03 12:37:13 +01:00
Stefano Verna
f2efc8c6c9 Compat: #unpack1 is not available on older Ruby versions 2021-03-03 09:25:34 +01:00
Stefano Verna
9baee6d1b3 Add FastImage::SUPPORTED_IMAGE_TYPES
Returns all the image formats FastImage is capable to recognize
2021-03-02 16:41:11 +01:00
Stefano Verna
58dcc3072f HEIC/HEIF format detection 2021-03-02 15:07:12 +01:00
Stephen Sykes
9a1400ebcc Bump version v2.2.3 2021-02-28 17:08:39 +02:00
Stephen Sykes
e72139ae17
Merge pull request #124 from stefanoverna/pr_svg
Identify svg files that start with white spaces
2021-02-28 16:52:42 +02:00
Fabrizio Monti
fcf871e637 Identify svg files that start with white spaces 2021-02-16 10:26:31 +01:00
Stephen Sykes
a440798854 Bump patch version v2.2.2 2021-01-30 19:23:34 +02:00
Stephen Sykes
e8ad2254e8 Test with Ruby 3 2021-01-30 15:42:00 +02:00
Stephen Sykes
98dcf9e491 Ignore pesky ds store files 2021-01-30 15:40:35 +02:00
Stephen Sykes
fd3b5f2c4c
Merge pull request #123 from Nakilon/master
force_encoding was called on Net::ReadAdapter when url is webmocked
fixes #121
2021-01-30 13:02:48 +02:00
Stephen Sykes
ddf9f25cef
Merge pull request #122 from nbianca/fix_gif
Fix GIF global color table flag check
2021-01-30 13:01:45 +02:00
Victor Maslov
437318220b force_encoding was called on Net::ReadAdapter when url is webmocked 2021-01-30 12:41:27 +03:00
Bianca Nenciu
e4c35d951e
Add an animated GIF without a global color table 2021-01-27 22:03:06 +02:00
Bianca Nenciu
c78578c097
Fix GIF global color table flag check
Zero is a truthy value, which is a problem when checking flags.
2021-01-21 17:20:51 +02:00
Stephen Sykes
c183bb833d bump version v2.2.1 2020-12-23 09:49:32 +02:00
Stephen Sykes
cb3a8cbeeb
Merge pull request #120 from ky1vstar/master
Add reference to Dart package
2020-11-06 08:06:56 +02:00
Aleksandr Zhuhan
fcf1704595
Update README.textile 2020-11-04 14:49:06 +02:00
Stephen Sykes
c93903eb5c
Merge pull request #119 from nbianca/master
Use frames count instead of delay to check animated GIFs
2020-11-03 16:55:08 +02:00
Bianca Nenciu
f1628c1539
Use frames count instead of delay to check animated GIFs
There are GIFs with multiple frames and zero delay, but also GIFs with
a single frame and positive delay. The old algorithm failed for this
kind of images.
2020-11-02 20:25:15 +02:00
Stephen Sykes
e4c198a02c Bump version v2.2.0 2020-07-23 11:31:21 +03:00
Stephen Sykes
c57b07dc85
Merge pull request #117 from PikachuEXE/replace-deprecated-method-usage
Replace deprecated method usage
2020-07-23 11:23:04 +03:00
PikachuEXE
0d4dd4a7ed * Test with 2.7 too 2020-07-23 15:22:29 +08:00
PikachuEXE
172b674a40 * Replace URI.escape with ::URI::DEFAULT_PARSER.escape
Similar code change
https://github.com/mongodb/mongo-ruby-driver/pull/1614/files
2020-07-23 15:22:29 +08:00
Stephen Sykes
099c5e4233
Merge pull request #116 from PikachuEXE/fix-incorrect-redirect-response-handling
Fix handling of redirect response without Location header
2020-06-22 06:59:01 +03: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
b58af86658 Fix returning nil if image type not gif for animated 2020-06-14 11:54:55 +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
Stephen Sykes
41088a55b6 Revert rake requirement since we still support ruby 1.9.2 2020-06-02 22:54:59 +03:00
Stephen Sykes
2decef3e02
Merge pull request #115 from gschlager/master
Avoid detecting arbitrary XML as SVG
2020-06-02 22:40:36 +03:00
Stephen Sykes
12a7dc4268 Update rake 2020-06-02 22:38:22 +03:00
Gerhard Schlager
2e0436c58f Avoid detecting arbitrary XML as SVG 2020-05-26 16:53:50 +02:00
Stephen Sykes
bad902712c
Merge pull request #111 from aried3r/ar/travis_update
Update Ruby 1.9-2.6
2019-10-24 18:19:02 +03:00
Anton Rieder
0d7ef4a548
Update Ruby 1.9-2.6 2019-10-24 15:06:58 +02:00
Stephen Sykes
021e5d3eb3
Merge pull request #110 from aried3r/patch-2
Use SVG Travis CI badge
2019-10-23 16:22:06 +03:00
Anton Rieder
692a1058a0
Use SVG Travis CI badge 2019-10-23 14:50:04 +02:00
Stephen Sykes
d1e49be9fc Bump version again v2.1.7 2019-09-05 22:54:40 +03:00
Stephen Sykes
6c7cdcd475 Merge branch 'master' of github.com:sdsykes/fastimage 2019-09-05 22:51:40 +03:00
Stephen Sykes
f82c2b192e Bump version 2019-09-05 22:51:30 +03:00
Stephen Sykes
a86e02db9c
Merge pull request #109 from abcang/supports_various_bitmap_headers
Supports various bitmap headers
2019-09-05 11:35:32 +03:00
abcang
6f548c5509 Supports various bitmap headers 2019-09-05 14:43:11 +09:00
Stephen Sykes
18831de7de
Merge pull request #108 from razola/proxy-auth
Support proxies that require a username and password
2019-03-20 09:24:50 +02:00
Sebastian Razola
ddfb29998a
Support proxies that require a username and password 2019-03-19 18:35:14 +01:00
Stephen Sykes
0dcffe126e
Update ruby versions for travis 2019-03-16 09:09:46 +02:00
Stephen Sykes
2132a8f99d
Merge pull request #107 from yahorzhylinski/handler-netunreach-exception
Handle `Errno::ENETUNREACH` exception
2019-03-16 09:06:14 +02:00
Yahor Zhylinski
3c5971e5b4 Handle Errno::ENETUNREACH exception 2019-03-13 09:21:07 +03:00
Stephen Sykes
9cc77e6e4c Bump version v2.1.5 2018-11-29 13:38:12 +02:00