Forum: Ruby on Rails Carrierwave + RMagick with animated gif upload is too slow

F22a5ce3c6b77c33c2234eb7d739a663?d=identicon&s=25 Jame Paul Almerino (jp_almerino)
on 2016-10-24 09:47
Hi,

I have an app with carrierwave + RMagick setup and i'm generating 3
versions for each images. I don't have a problem with non-animated gifs
file but when i'm uploading animated gif file, the upload seems to be so
slow in my localhost and hangs in production.

Here's the code for the version processing:

  version :scaled_512 do
    process :resize_to_fit => [512, 512]
  end

  version :thumb_425, from_version: :scaled_512 do
    process :resize_to_fill => [425, 212]
  end

  version :thumb_256, from_version: :scaled_512 do
    process :resize_to_fill => [256, 256]
  end
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.