Need image uploading to S3 using paperclip to be a BACKGROUND PROCESS

I have an app that is being tested in production. I am using Paperclip to upload images to S3. here is the code:

has_attached_file :avatar, :styles => { :forcrop => "800x800>", :large => "500x500#", :medium => "250x250#", :small => "100x100#", :xsmall => "60x60#", :thumb => "35x35#" }, :processors => [:cropper]

The way it works is that when a User uploads an image he is taken to a crop page which displays the :forcrop image above. He is then able to set the crop are and click crop. When he clicks on crop the image is reprocessed. The cropping functionality is mainly taken from Ryan's Railscasts with some modifications.

The issue is that it takes forever (8-12 seconds) for the image to be resized when initially uploaded and another 5-8 seconds to resize the image after cropping. I need someone to implement delayed job or rescue or any other solution that will make this whole process rather seamless and quick.

Also note that I am using Heroku, so I'd prefer a less costly solution. Maybe the implementation of a background process via Workless gem or something along those lines.

Kemahiran: Ruby on Rails

Lihat lagi: resize image background, rails job, background 500x500, avatar background, rails any, ruby rails job, ruby job, image cropping, image crop, implement image, set rails, app avatar, rails page, avatar images, ruby rails modifications, ruby rails upload images, background process, app background image, using ruby rails, rails image crop

Tentang Majikan:
( 8 ulasan ) Mumbai, India

ID Projek: #4768165

1 pekerja bebas membida secara purata $200 untuk pekerjaan ini


Hi I'm interested.

$200 USD dalam 3 hari
(5 Ulasan)