g1nn13-image_science 1.2.9 → 1.2.10

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.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 1.2.10 / 2011-08-10
2
+
3
+ * Changed hard-coded jpeg image quality from JPEG_QUALITYSUPERB to
4
+ JPEG_QUALITYGOOD in the save method. This only affects saving jpeg
5
+ images to disk.
6
+
1
7
  === 1.2.9 / 2010-06-02
2
8
 
3
9
  * fixed a problem in resize_with_crop that sporadically raised an exception
@@ -13,7 +13,7 @@ require 'inline'
13
13
  # Based on ImageScience 1.2.1
14
14
 
15
15
  class ImageScience
16
- VERSION = '1.2.9'
16
+ VERSION = '1.2.10'
17
17
 
18
18
  ##
19
19
  # The top-level image loader opens +path+ and then yields the image.
@@ -119,7 +119,6 @@ class ImageScience
119
119
  end
120
120
 
121
121
  self.resize(w.to_i, h.to_i) do |image|
122
- puts image.nil? ? "resize() yielded nil" : "image yielded #{image.width} x #{image.height}"
123
122
  yield image
124
123
  end
125
124
  end
@@ -379,7 +378,7 @@ FREE_IMAGE_FORMAT fif = FreeImage_GetFIFFromFilename(output);
379
378
  if (fif == FIF_UNKNOWN) fif = FIX2INT(rb_iv_get(self, "@file_type"));
380
379
  if ((fif != FIF_UNKNOWN) && FreeImage_FIFSupportsWriting(fif)) {
381
380
  GET_BITMAP(bitmap);
382
- flags = fif == FIF_JPEG ? JPEG_QUALITYSUPERB : 0;
381
+ flags = fif == FIF_JPEG ? JPEG_QUALITYGOOD : 0;
383
382
  BOOL result = 0, unload = 0;
384
383
 
385
384
  if (fif == FIF_PNG) FreeImage_DestroyICCProfile(bitmap);
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 9
9
- version: 1.2.9
8
+ - 10
9
+ version: 1.2.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - jim nist
@@ -35,7 +35,7 @@ cert_chain:
35
35
  UHHftgnvI+YPGw==
36
36
  -----END CERTIFICATE-----
37
37
 
38
- date: 2010-06-02 00:00:00 -04:00
38
+ date: 2011-08-10 00:00:00 -04:00
39
39
  default_executable:
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
@@ -132,8 +132,8 @@ dependencies:
132
132
  segments:
133
133
  - 2
134
134
  - 6
135
- - 0
136
- version: 2.6.0
135
+ - 1
136
+ version: 2.6.1
137
137
  type: :development
138
138
  version_requirements: *id007
139
139
  description: |-
metadata.gz.sig CHANGED
Binary file