local-fastimage_resize 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 7a7a5852a9c12e9eb1da31bc031d8b39556025aa14a3df7cd21e63c23fe022c0
4
- data.tar.gz: d5cb5920f6434683f56bb828cfb6b4dcd1742ae28e6184fe7b9e559cd2a61947
2
+ SHA1:
3
+ metadata.gz: a0c5bfc9f73ad0d6abacc15c319720f88b5b1c17
4
+ data.tar.gz: 909df1ea148b610d11c149a90638b1459bee7505
5
5
  SHA512:
6
- metadata.gz: 6d60ea4c09f3901652548da85b723ea6b48959ec60a0633823e1b2a7a05a4318da716b36839d39bd2d9a7521eb3296e1eee459e9849df68c5359844d1c764d1d
7
- data.tar.gz: 8f145aeae41f9e0cfb9aec8d56bc7b5a7b9beddec9d5d31496268434f247bd99dcd3a9c74c5e7a62b36d035dc3a78897faa232a90585fc886fa841d453a595fe
6
+ metadata.gz: f8b726c8da9c6d2fdb0eb7b767f1e67f14c2b710d7ac9e6c1090a3f916ca92eb87a7df677f9e5b61e92730ae3fbc6ef62b2c569179cc36e5e51b08ed56825edd
7
+ data.tar.gz: e2015adb26c7add9b02831a058aea7479ec3f3de27988c8d86c205984ea0146557a61d29c73d48a877774c9c3f9731f8b683d8587d0ad923a4cc3de159f1617e
data/.travis.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.10
4
- - 2.3.7
5
- - 2.4.4
6
- - 2.5.1
3
+ - 2.4.10
4
+ - 2.5.8
5
+ - 2.6.6
6
+ - 2.7.2
7
+ - 3.0.0
7
8
 
8
9
  before_install:
9
10
  - gem install bundler
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 3.4.0 - 2021-02-10
2
+
3
+ Support for resizing TIFF images. Output of such an operation is always a PNG
4
+ image.
5
+
1
6
  # 3.3.0 - 2018-04-24
2
7
 
3
8
  Support for Exif orientation.
@@ -48,6 +48,8 @@ static VALUE fastimage_native_resize(
48
48
  if (!f) trans = -1; /* no transparent pixel found */
49
49
  }
50
50
  break;
51
+ case 3: im_in = gdImageCreateFromTiff(in);
52
+ break;
51
53
  }
52
54
 
53
55
  if (!im_in) {
@@ -128,6 +130,8 @@ static VALUE fastimage_native_resize(
128
130
  }
129
131
  gdImageGif(im_out, out);
130
132
  break;
133
+ case 3: gdImagePng(im_out, out);
134
+ break;
131
135
  }
132
136
  fclose(out);
133
137
  }
@@ -26,8 +26,8 @@ require 'fastimage'
26
26
  require 'fastimage_native_resize'
27
27
 
28
28
  module FastImage::Resize
29
- SUPPORTED_FORMATS = [:jpeg, :png, :gif]
30
- FILE_EXTENSIONS = [:jpg, :png, :gif] # prefer jpg to jpeg as an extension
29
+ SUPPORTED_FORMATS = [:jpeg, :png, :gif, :tiff]
30
+ FILE_EXTENSIONS = [:jpg, :png, :gif, :tiff] # prefer jpg to jpeg as an extension
31
31
 
32
32
  class FormatNotSupported < FastImage::FastImageException # :nodoc:
33
33
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  class FastImage
4
4
  module Resize
5
- VERSION = "3.3.0"
5
+ VERSION = "3.4.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local-fastimage_resize
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Sykes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-24 00:00:00.000000000 Z
12
+ date: 2021-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: local-fastimage
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - libgd, see www.libgd.org
129
129
  rubyforge_project:
130
- rubygems_version: 2.7.6
130
+ rubygems_version: 2.6.14.4
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Local FastImage Resize - Image resizing fast and simple