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
2
votes
3 answers

Converting PDFs to PNGs with Dragonfly

I have a Dragonfly processor which should take a given PDF and return a PNG of the first page of the document. When I run this processor via the console, I get back the PNG as expected, however, when in the context of Rails, I'm getting it as a…
Neil Middleton
  • 22,105
  • 18
  • 80
  • 134
2
votes
2 answers

Move RefineryCMS from Local to Production

We decided to try using RefineryCMS for our current project and have run into some issues. We began the project in a local development environment. The deadline is very quickly approaching. At first, we tried to move the project into production…
2
votes
1 answer

Dragonfly Gem with ImageMagick and Passenger

I was having some problems getting the dragonfly gem to play nicely with passenger. Passenger doesn't seem to use the current $PATH so it can't find the convert binary. I've added some configuration to dragonfly which seems to solve the…
Mario Visic
  • 2,653
  • 1
  • 22
  • 29
2
votes
0 answers

What is the correct way of using a custom Dragonfly storage backend in Refinery?

I have a Refinery Blog application wrapped up in a Docker container. I'm trying to use an alternative Dragonfly data store for image storage, but I can't seem to get it to work as expected. I'm using a custom Dragonfly data store I wrote using…
Roderick
  • 2,383
  • 3
  • 20
  • 33
2
votes
1 answer

Rails: Dragonfly UID not found although it displays the path correctly

I have a Filemanager app, which doesn't use a Model and doesn't store anything in the database. Thus, I had to do the setup a bit differently. My setup is as follows: When generating the files files.each do |file| filesObj = { "name" =>…
Suthan Bala
  • 3,209
  • 5
  • 34
  • 59
2
votes
1 answer

Rails: Multiple image upload at the same time with Dragonfly

I'm using Dragonfly to upload images to model Photo which is associeted to others models. For example: MODEL: Post class Post < ActiveRecord::Base has_many :photos, dependent: :destroy accepts_nested_attributes_for :photos, allow_destroy:…
2
votes
1 answer

Rails/Dragonfly: how to update magic colums like image_width

I use dragonfly to handle image attachments in my rails app. I use the magic columns image_width and image_height in my model. This worked nicely. Now I have gotten some images with a image_uid in the model, image is accessible, but image_width and…
Meier
  • 3,858
  • 1
  • 17
  • 46
2
votes
1 answer

Why do some assets give 403 forbidden?

I am using ROR, nginx, passenger... If there is no picture in the DB then my app will serve the 'default_avatar.png'. I noticed I was unable to save new pictures. So, I updated my dragonfly initializer to point at my db server: ... # I have…
Peter Black
  • 1,142
  • 1
  • 11
  • 29
2
votes
0 answers

How to save dragonfly attachment directly to s3 without hitting the rails server?

I have setup-ed my rails application to use dragonfly + s3. Everything works fine up till here. and i have deployed my rails application on Heroku. Now i want to upload my images to s3 without hitting the rails server, as due to heavy uploading my…
Sachin Singh
  • 7,107
  • 6
  • 40
  • 80
2
votes
1 answer

Why is Dragonfly resizing my images over and over again?

I load my images, and the first times it will run convert on them, so it's a little slow. But I expected it to never run convert on them again but DragonFly does it over and over again (in development mode). 2014-01-15 14:10:45.587 [fyi] Started GET…
Dorian
  • 22,759
  • 8
  • 120
  • 116
2
votes
1 answer

Crop circular image with dragonfly rails

I'm using dragonfly ~> 0.9.15 Given an image, I'm confused at how to use the convert method in dragonfly to crop a circular portion from the image with transparent background. I am able to use a direct image magick command to run it from command…
2
votes
1 answer

How can I get refinerycms to display uploaded image urls from Amazon S3 versus /system/images...?

I am running: Refinery - 2.1.0 Rails - 3.2.14 Ruby - 1.9.3p392 On localhost, I have set up refinery to upload images to Amazon S3. I have set this up by editing my core.rb file to have: config.s3_backend = true config.s3_access_key_id = 'key…
2
votes
1 answer

Saving TinyMCE Base64 images with dragonfly

I am using tinymce-rails-imageupload plugin with dragonfly. When the image is uploaded via separate form in popup window, it behaves as expected (save image in datastore). But when the user drag-drop or paste image into TinyMCE, the imageupload…
Annie
  • 3,090
  • 9
  • 36
  • 74
2
votes
0 answers

Azure blob storage as ROR's Dragonfly data store

With EngineYard recently adding Azure's IAAS in their bucket, one of our client is deciding to migrate to Azure blob storage. In the application, we are using predefined S3 data store settings for dragonfly and in there, other settings are available…
2
votes
1 answer

Carrierwave - show thumbnail in ActiveAdmin after upload with remove/delete link

I use ActiveAdmin to upload featured images to posts. It works but after I save the post, and click on edit, the image field is empty, although the image is still attached to it. What I want to achieve is after upload I would like to show the…
Allanon
  • 547
  • 4
  • 24
1 2
3
9 10