local-fastimage_resize 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +5 -4
- data/CHANGELOG.md +5 -0
- data/ext/fastimage_native_resize/fastimage_native_resize.c +4 -0
- data/lib/fastimage/resize.rb +2 -2
- data/lib/fastimage/resize/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a0c5bfc9f73ad0d6abacc15c319720f88b5b1c17
|
4
|
+
data.tar.gz: 909df1ea148b610d11c149a90638b1459bee7505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b726c8da9c6d2fdb0eb7b767f1e67f14c2b710d7ac9e6c1090a3f916ca92eb87a7df677f9e5b61e92730ae3fbc6ef62b2c569179cc36e5e51b08ed56825edd
|
7
|
+
data.tar.gz: e2015adb26c7add9b02831a058aea7479ec3f3de27988c8d86c205984ea0146557a61d29c73d48a877774c9c3f9731f8b683d8587d0ad923a4cc3de159f1617e
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
}
|
data/lib/fastimage/resize.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
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
|