image_optim icon indicating copy to clipboard operation
image_optim copied to clipboard

images not optimised

Open sudheerkancherla opened this issue 10 years ago • 3 comments

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

sudheerkancherla avatar Dec 22 '15 12:12 sudheerkancherla

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.

toy avatar Dec 22 '15 20:12 toy

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

sudheerkancherla avatar Dec 23 '15 05:12 sudheerkancherla

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.

toy avatar Dec 28 '15 18:12 toy