image_science 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.txt +7 -0
- data/lib/image_science.rb +6 -6
- data.tar.gz.sig +0 -0
- metadata +16 -16
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0eafa07838251974658928a7457a6a2769d6e831bf59d88f184b608ab72985be
|
4
|
+
data.tar.gz: 1bc0b554d2ff48478f8b734c08f8572e207c976df0094d8b284e5ae8885a9608
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d06d467df3ca9d68df3faf6451dab7dcd999439c12ef1e77093c21993735506cdac1a25d236583708e837eca3e9943a124ef5cee60406c8a4a22f7bed0c93a
|
7
|
+
data.tar.gz: e26fb5960473a707123f9e60d14e269b9aa385d6cf462f7c46012802b16ee7587db52c0a9e6bf50e1d35c71656ddb267a49e99a562cfaeb238e46d8aaf0d312b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/image_science.rb
CHANGED
@@ -11,7 +11,7 @@ require 'inline'
|
|
11
11
|
# http://seattlerb.rubyforge.org/ImageScience.html
|
12
12
|
|
13
13
|
class ImageScience
|
14
|
-
VERSION = '1.3.
|
14
|
+
VERSION = '1.3.2'
|
15
15
|
|
16
16
|
##
|
17
17
|
# The top-level image loader opens +path+ and then yields the image.
|
@@ -90,7 +90,7 @@ class ImageScience
|
|
90
90
|
end
|
91
91
|
|
92
92
|
inline do |builder|
|
93
|
-
%w[/opt/local /usr/local].each do |dir|
|
93
|
+
%w[/opt/homebrew /opt/local /usr/local].each do |dir|
|
94
94
|
if File.directory? "#{dir}/include" then
|
95
95
|
builder.add_compile_flags "-I#{dir}/include"
|
96
96
|
builder.add_link_flags "-L#{dir}/lib"
|
@@ -192,13 +192,13 @@ class ImageScience
|
|
192
192
|
FreeImage_GetMetadata(FIMD_EXIF_MAIN, bitmap, "Orientation", &tagValue);
|
193
193
|
switch (tagValue == NULL ? 0 : *((short *) FreeImage_GetTagValue(tagValue))) {
|
194
194
|
case 6:
|
195
|
-
bitmap =
|
195
|
+
bitmap = FreeImage_Rotate(bitmap, 270, NULL);
|
196
196
|
break;
|
197
197
|
case 3:
|
198
|
-
bitmap =
|
198
|
+
bitmap = FreeImage_Rotate(bitmap, 180, NULL);
|
199
199
|
break;
|
200
200
|
case 8:
|
201
|
-
bitmap =
|
201
|
+
bitmap = FreeImage_Rotate(bitmap, 90, NULL);
|
202
202
|
break;
|
203
203
|
default:
|
204
204
|
bitmap = FreeImage_Clone(bitmap);
|
@@ -322,7 +322,7 @@ class ImageScience
|
|
322
322
|
FIBITMAP *bitmap, *image;
|
323
323
|
if ((angle % 45) != 0) rb_raise(rb_eArgError, "Angle must be 45 degree skew");
|
324
324
|
GET_BITMAP(bitmap);
|
325
|
-
image =
|
325
|
+
image = FreeImage_Rotate(bitmap, angle, NULL);
|
326
326
|
if (image) {
|
327
327
|
copy_icc_profile(self, bitmap, image);
|
328
328
|
return wrap_and_yield(image, self, 0);
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_science
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC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|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: RubyInline
|
@@ -71,14 +71,14 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '3.
|
74
|
+
version: '3.25'
|
75
75
|
type: :development
|
76
76
|
prerelease: false
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '3.
|
81
|
+
version: '3.25'
|
82
82
|
description: |-
|
83
83
|
ImageScience is a clean and happy Ruby library that generates
|
84
84
|
thumbnails -- and kicks the living crap out of RMagick. Oh, and it
|
@@ -111,7 +111,7 @@ licenses:
|
|
111
111
|
metadata:
|
112
112
|
homepage_uri: https://github.com/seattlerb/image_science
|
113
113
|
bug_tracker_uri: https://github.com/seattlerb/image_science/issues
|
114
|
-
post_install_message:
|
114
|
+
post_install_message:
|
115
115
|
rdoc_options:
|
116
116
|
- "--main"
|
117
117
|
- README.txt
|
@@ -128,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
132
|
-
signing_key:
|
131
|
+
rubygems_version: 3.3.12
|
132
|
+
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: ImageScience is a clean and happy Ruby library that generates thumbnails
|
135
135
|
-- and kicks the living crap out of RMagick
|
metadata.gz.sig
CHANGED
Binary file
|