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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f62c2f38c5970b8566b625306ddefd05042f6606554b97f4055e5b8b2122cc60
4
- data.tar.gz: 56788377198053980c2fcb98bc833384651fd831e88903112b167852f6f01c9a
3
+ metadata.gz: 0eafa07838251974658928a7457a6a2769d6e831bf59d88f184b608ab72985be
4
+ data.tar.gz: 1bc0b554d2ff48478f8b734c08f8572e207c976df0094d8b284e5ae8885a9608
5
5
  SHA512:
6
- metadata.gz: 79b3af2d797cc00f33bb0f0d9c9e87f6caf820e71c6f6e8d88749053eeca7c1ee90ba357f44b936d091e6477d529467464b0e510edcd2a83e2e047f47b2e6f99
7
- data.tar.gz: ae6bea67b124a6a10f8767c41c3ce156b86072b4ff0ffe55af8c7d76af2b75bff3418a0fa7374d3444068393897383b5f2c0b74ffb9d2450faf266ff0f15b0dd
6
+ metadata.gz: f7d06d467df3ca9d68df3faf6451dab7dcd999439c12ef1e77093c21993735506cdac1a25d236583708e837eca3e9943a124ef5cee60406c8a4a22f7bed0c93a
7
+ data.tar.gz: e26fb5960473a707123f9e60d14e269b9aa385d6cf462f7c46012802b16ee7587db52c0a9e6bf50e1d35c71656ddb267a49e99a562cfaeb238e46d8aaf0d312b
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.3.2 / 2022-10-01
2
+
3
+ * 2 bug fixes:
4
+
5
+ * Fix include dir finder to work w/ M1 homebrew setup better.
6
+ * Switch from FreeImage_RotateClassic to FreeImage_Rotate. (ivanetchart)
7
+
1
8
  === 1.3.1 / 2019-12-14
2
9
 
3
10
  * 1 bug fix:
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.1'
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 = FreeImage_RotateClassic(bitmap, 270);
195
+ bitmap = FreeImage_Rotate(bitmap, 270, NULL);
196
196
  break;
197
197
  case 3:
198
- bitmap = FreeImage_RotateClassic(bitmap, 180);
198
+ bitmap = FreeImage_Rotate(bitmap, 180, NULL);
199
199
  break;
200
200
  case 8:
201
- bitmap = FreeImage_RotateClassic(bitmap, 90);
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 = FreeImage_RotateClassic(bitmap, angle);
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.1
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
- MIIDPjCCAiagAwIBAgIBBDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE5MTIxMzAwMDIwNFoXDTIwMTIxMjAwMDIwNFowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -22,14 +22,14 @@ cert_chain:
22
22
  qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
23
23
  gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
24
24
  HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
25
- AQCkkcHqAa6IKLYGl93rn78J3L+LnqyxaA059n4IGMHWN5bv9KBQnIjOrpLadtYZ
26
- vhWkunWDKdfVapBEq5+T4HzqnsEXC3aCv6JEKJY6Zw7iSzl0M8hozuzRr+w46wvT
27
- fV2yTN6QTVxqbMsJJyjosks4ZdQYov2zdvQpt1HsLi+Qmckmg8SPZsd+T8uiiBCf
28
- b+1ORSM5eEfBQenPXy83LZcoQz8i6zVB4aAfTGGdhxjoMGUEmSZ6xpkOzmnGa9QK
29
- m5x9IDiApM+vCELNwDXXGNFEnQBBK+wAe4Pek8o1V1TTOxL1kGPewVOitX1p3xoN
30
- h7iEjga8iM1LbZUfiISZ+WrB
25
+ AQCKB5jfsuSnKb+t/Wrh3UpdkmX7TrEsjVmERC0pPqzQ5GQJgmEXDD7oMgaKXaAq
26
+ x2m+KSZDrqk7c8uho5OX6YMqg4KdxehfSLqqTZGoeV78qwf/jpPQZKTf+W9gUSJh
27
+ zsWpo4K50MP+QtdSbKXZwjAafpQ8hK0MnnZ/aeCsW9ov5vdXpYbf3dpg6ADXRGE7
28
+ lQY2y1tJ5/chqu6h7dQmnm2ABUqx9O+JcN9hbCYoA5i/EeubUEtFIh2w3SpO6YfB
29
+ JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
30
+ YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2019-12-15 00:00:00.000000000 Z
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.20'
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.20'
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.0.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