carrierwave-vips 0.9.0 → 0.9.1
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/lib/carrierwave/vips.rb +1 -1
- metadata +1 -1
data/lib/carrierwave/vips.rb
CHANGED
|
@@ -192,7 +192,7 @@ module CarrierWave
|
|
|
192
192
|
image = VIPS::Image.jpeg current_path, shrink_factor: shrink_factor, sequential: true
|
|
193
193
|
ratio = get_ratio image, width, height, min_or_max
|
|
194
194
|
elsif png?
|
|
195
|
-
image = VIPS::Image.png
|
|
195
|
+
image = VIPS::Image.png current_path, :sequential => true
|
|
196
196
|
end
|
|
197
197
|
|
|
198
198
|
if ratio > 1
|