jtescher / carrierwave-imageoptimizer

This gem allows you to simply optimize CarrierWave images via jpegoptim or optipng.
https://rubygems.org/gems/carrierwave-imageoptimizer
MIT License
212 stars 33 forks source link

no optimization #3

Closed optimum-dulopin closed 11 years ago

optimum-dulopin commented 11 years ago

Hi, Im trying to use carrierwave-imageoptimizer but it seems it have no effect : with or without, the output file size is the same

here my uploader

process :resize_to_limit => [xx, yy] process :quality => 75 process :add_text process :optimize

version :medium do process :quality => 75 process :resize_to_limit => [xx1, yy1] process :optimize end

version :thumb do process :quality => 75 process :resize_to_limit => [xx2, yy2] process :optimize end

does anything is missing ?

thanks

jtescher commented 11 years ago

What type of image are you trying to optimize? and what are the results of which optipng and which jpegoptim?

optimum-dulopin commented 11 years ago

im trying with png and jpg which optipng /usr/bin/optipng

which jpegoptim /usr/bin/jpegoptim

on console, I can see that imageoptimizer is trying to optimize during upload process. But it doesnt optimize. If I use directly jpegoptim with same option with uploaded file, then I see that they are "optimizable"

jtescher commented 11 years ago

I can't seem to reproduce this issue so I made a simple working example app at https://github.com/jtescher/carrierwave-imageoptimizer-example.

Can you see if there are any differences that could cause the issue? Or could you provide a failing test so I can isolate the issue better?

jtescher commented 11 years ago

Closing this due to inactivity. If you have any further issues, please reopen.