Questions tagged [dragonfly-gem]

Dragonfly is a Ruby gem for a framework that enables on-the-fly processing for any content type. It is especially suited to image handling. Its uses range from image thumbnails to standard attachments to on-demand text generation. Use this tag for the Ruby gem, not the deprecated [dragonfly] tag, which is also the name of the Opera debugger (use [opera-dragonfly] for that meaning).

142 questions
52
votes
3 answers

Rails 3 paperclip vs carrierwave vs dragonfly vs attachment_fu

I'm working on upgrading a Rails 2.3.11, Ruby 1.9.2 app to Rails 3.0.10, and attachment_fu no longer works. I'm looking at changing to paperclip, carrierwave, or dragonfly for file uploads, or maybe a Rails 3 compatible, maintained version of…
28
votes
4 answers

Carrierwave or Dragonfly

I have been looking into rails file upload tools and the ones that seemed the most appealing and interesting to me were carrierwave and dragonfly. From looking around it seems like carrierwave takes the more traditional style where you can process…
Danish Khan
  • 1,230
  • 1
  • 10
  • 13
14
votes
1 answer

Heading into 2013, should I go with Dragonfly or Paperclip or Carrierwave?

I am just another average joe hoping to jump onto the social network bandwagon. I'd like to know which photo uploading/resizing gem I should use for users of my app. It would be great if you could explain why.
pratski
  • 1,448
  • 2
  • 22
  • 37
12
votes
3 answers

Rails 3 + JQuery-File-Upload + Nested Model

I've been searching for some examples, but have come up short: I'm trying to implement JQuery-File-Upload on a project I'm working on, but am getting lost as to how to get it to work with nested attributes. Quick overview: 2 Models: Comment…
8
votes
3 answers

How to cache files over 1MB with rack/cache on Heroku?

I'm using a combination of Dragonfly and rack/cache hosted on Heroku. I'm using Dragonfly for uploaded assets. Thumbnails are processed on-the-fly and stored in rack/cache for fast delivery from memcached (via the Memcachier addon). Regular static…
jordelver
  • 8,292
  • 2
  • 32
  • 40
8
votes
4 answers

refinerycms image not loading - dragonfly error

I'm working on developing a refinerycms rails app that was working good locally and now i've moved it to my VPS and I was having issues with images that i uploaded through refinerycms not loading and i've been reading that i needed to upgrade my…
Catfish
  • 18,876
  • 54
  • 209
  • 353
7
votes
1 answer

multiple image upload with dragonfly

i was trying for multiple image upload with dragonfly in rails3. i searched for some tutorials, but couldn't find any. i found a tutorial for multiple image upload with Carrierwave, but couldnt find luck with dragonfly .. any help please :)
anand
  • 508
  • 4
  • 17
7
votes
1 answer

Rails Admin With Dragonfly - Edit. No file present

Using Rails Admin with Dragonfly. However when I have created a new post with an attachment connected :ob to dragonfly and wants to edit it. It sais "No file chosen". As it doesn't pick up that there is already a file present? In my rails_admin I…
Philip
  • 6,827
  • 13
  • 75
  • 104
6
votes
2 answers

Assigning Image from URL with Dragonfly

I'm using Dragonfly for handling images on a Rails 3.1 app. I'm struggling with assigning images to a model via the url. I have this working fine in a form: <%= form_for [@word, @game, @picture], :html => {:multipart => true} do |f| %> <%=…
Kombo
  • 2,371
  • 3
  • 34
  • 64
5
votes
1 answer

How to resize image before_save with dragonfly?

In my model i have: attr_accessible :photo image_accessor :photo before_save :resize_image def resize_image self.photo = self.photo.process(:resize, '40x40') end but after save it removes my photo_uid from record in database (or doesnt write…
korywka
  • 7,537
  • 2
  • 26
  • 48
4
votes
1 answer

Uploading image to Rails server (using Dragonfly) from iPhone

I am trying to upload an image from iPhone to Rails, which is configured with Dragonfly gem. The problem is I keep getting this error: Dragonfly::TempObject must be initialized with a String, a File, a Tempfile, another TempObject, or something…
picardo
  • 24,530
  • 33
  • 104
  • 151
4
votes
3 answers

Dragonfly gem - default images?

I'm using Dragonfly and would like to have a default image that resizes in the same way present thumbnails do. I currently have the following code, but when Dragonfly uses the fetch_file method, it tries to process a thumbnail but the resulting URL…
Blake Simpson
  • 1,078
  • 6
  • 10
4
votes
1 answer

How to set Dragonfly for use with S3?

In my initializers/dragonfly.rb I put this: require 'dragonfly/rails/images' app = Dragonfly[:app_name] app.datastore = Dragonfly::DataStorage::S3DataStore.new({ :bucket_name => 'bucket_name', :access_key_id => 'key...', …
4
votes
1 answer

Getting 400 status from nginx while posting a form with multiple file fields

I am using rails 4.2 and nginx in my production. I have a form with multiple file fields. Till yesterday, this functionality has been working as expected. But a strange issue just arrived. Issue is: while posting this form, it gets loading. I…
1
2 3
9 10