user5016749
user5016749

Reputation:

Compressing images after upload

I have uploaded images using carrierwave and it is working fine. I have use delayed jobs in my project for my background task .I am looking for something so that i can compress my images when delayed jobs works I have no idea because i am new to ruby on rails .Can anyone tell me any gem or something but a detailed viw how to basically compress images using delayed jobs and carrierwave

Upvotes: 3

Views: 789

Answers (2)

Alessandro De Simone
Alessandro De Simone

Reputation: 4215

You can use the gem Paperclip, it is quite easy to use and you can create your own processor to compress (or other operations) the images: https://github.com/thoughtbot/paperclip#image-processor

Upvotes: 1

Kaushlendra Tomar
Kaushlendra Tomar

Reputation: 1450

You Should use carrierwave-imageoptimizer

Upvotes: 2

Related Questions