toy / image_optim

Optimize images using multiple utilities
https://github.com/toy/image_optim
MIT License
1.52k stars 109 forks source link

images not optimised #118

Open sudheerkancherla opened 8 years ago

sudheerkancherla commented 8 years ago

Hi,

First i tried 'paperclip-optimizer' but it seems not working with rails 4. Now, i am using rails 4.2 and ruby 2.2 versions. added gem 'image_optim' and gem 'image_optim_pack' and installed required libraries. i am not getting whats i am missing, images are not optimized.

my config/image_optim.yml: nice: 20 allow_lossy: true lossless: false pngout: false # disable svgo: false jpegoptim:
max_quality: 50 jpegrecompress:
quality: 0

Can any one please suggest any clue to debug more.

thanks, Sudheer.K

toy commented 8 years ago

Could you please tell in which context are not images optimised, assets or paperclip images? As out of box image_optim itself optimises only assets.

sudheerkancherla commented 8 years ago

hi, thanks for the quick reply. i am checking paperclip images(active record attachment). Is not there any option to enable for paperclip images too.

thanks, Sudheer.K

toy commented 8 years ago

Currently there is no out of the box support in the gem itself (I've noted an issue for it #54 long time ago). You can either contact the developer of paperclip-optimizer, create a pull request for that gem or start a discussion about #54.