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

Remvoe exif data from image #16

Closed r00takaspin closed 8 years ago

r00takaspin commented 8 years ago

Hello, I am optimizing uploaded images for good rating at Google PageSpeed Insights Service. This service asks for remove of EXIF information from served images for better site performance.

Is it any opportunity to remove EXIF information from image using gem carrierwave-imageoptimizer?

jtescher commented 8 years ago

What type of image are you trying to optimize? under the hood this will use jpegoptim to optimize the files which will remove EXIF information.

r00takaspin commented 8 years ago

@jtescher yes, it is jpeg images. I see that jpegoptim has option to remove all headers from jpeg file via:

jpegoptim –strip-all someimage.jpg

it can be good, if gem had option that removes all headers from image.

I am preparing pull request for gem image_optimizer, that adds this option.

jtescher commented 8 years ago

So it looks like that is currently being passed in https://github.com/jtescher/image_optimizer/blob/master/lib/image_optimizer/jpeg_optimizer.rb#L7 are you not seeing that optimization applied?

r00takaspin commented 8 years ago

Ok, I see, thank you. Sorry for worrying.