Carrierwave + RMagick with animated gif upload is too slow

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs