Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images not optimised #118

Open
sudheerkancherla opened this issue Dec 22, 2015 · 3 comments
Open

images not optimised #118

sudheerkancherla opened this issue Dec 22, 2015 · 3 comments

Comments

@sudheerkancherla
Copy link

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
Copy link
Owner

toy commented Dec 22, 2015

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
Copy link
Author

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
Copy link
Owner

toy commented Dec 28, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants