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
4
votes
0 answers

Rails 4 Dragonfly Gem with Amazon S3 Direct Upload

I'm trying to figure out how to incorporate S3 with dragonfly. This gem works locally, but because I'm using Heroku, the files gets deleted... so, I'm thinking I need to implement it into S3. I'm using this gem: dragonfly-s3_data_store where my…
4
votes
2 answers

Override transparency color when converting transparent PNG to JPG

I'm using Dragonfly to generate thumbnail images in a Rails app. I'm serving all picture images as JPG's. Now the client is uploading transparent PNG files, like this…
Alexander Malfait
  • 2,691
  • 1
  • 23
  • 23
4
votes
1 answer

Remap / posterize image colors using list of colors in imagemagick

Let's say I have this image: And I want to reduce the number of colors to 3, like so: To do this, I applied the following command: convert orange.jpg -remap palette.png orange_output.png where palette.png looks like this: Is there a way to…
Rick
  • 8,366
  • 8
  • 47
  • 76
4
votes
1 answer

Trying to upload multiple files - Document(#70285786863740) expected, got ActionDispatch::Http::UploadedFile(#70285766684260) when

I'm trying to use Dragonfly to upload multiple files at a time and store them. I was able to successfully upload and store a single file by adding a document_uid and document_name to my case model, but now I want to create the ability to upload…
Catfish
  • 18,876
  • 54
  • 209
  • 353
3
votes
3 answers

Rails: How to protect images uploaded to S3 using dragonfly

I'm looking for a way to protect images uploaded from a Heroku Rails 3 app using the dragonfly gem to a S3 storage. I'd like to control access on a user basis and ensure that the images can't be accessed directly. I've found some information for…
polarblau
  • 17,649
  • 7
  • 63
  • 84
3
votes
2 answers

Dragonfly and Short URLs

I'm using Dragonfly in a project that returns a large stream of photos and was looking to optimize the URLs. I'm currently getting image URLs…
Kevin Sylvestre
  • 37,288
  • 33
  • 152
  • 232
3
votes
1 answer

Why does cropping behave like that?

I've got an image with dimensions 126x75: (rdb:1) p image.width 126 (rdb:1) p image.height 57 Now I want to crop it down to 50x50, beginning at the north west (top left corner). So I tried that (which should be similar to IMs command line geometry…
ericteubert
  • 4,531
  • 3
  • 31
  • 35
3
votes
1 answer

Rails & Dragonfly: Cleaning up unused images

I'm working on cleaning up an old Rails 2.3.5 app that uses Dragonfly to store its images. I have a feeling there are far more images in the filestore than records in the database, but due to Dragonfly's less than transparent naming scheme I have no…
Peter Duijnstee
  • 3,759
  • 2
  • 20
  • 30
3
votes
1 answer

How do I save Dragonfly Images to a remote server using NGINX reverse proxy?

PROBLEM: Images are not getting read/write to my DB server file structure for Dragonfly. I am able to interact with my database through active record for all of my Ruby models. All my static assets are working. User generated images should be saved…
Peter Black
  • 1,142
  • 1
  • 11
  • 29
3
votes
3 answers

Empty file_field on submit: param is missing or the value is empty

I have a application with dragonfly to manage my image uploads: ruby 2.1.3 rails 4.1.6 The upload works but on update action, when the file is empty, I have the following message: ActionController::ParameterMissing in…
3
votes
1 answer

Dragonfly: cleanup files during tests

I'm testing a Rails model which has file attachments using Dragonfly. This means I'm creating a lot of files in public/system/dragonfly/test every time I run my specs. I'm looking for a way to have Dragonfly cleanup after itself or, ideally, to not…
tristanm
  • 3,337
  • 2
  • 27
  • 40
3
votes
2 answers

Serving images remotely or directly the Amazon S3 - Dragonfly Gem

I have an application on Heroku and i am using Amazon S3 for storing images. I have used all Cache technics i know but seems images load too slow and it's putting off some users. At the moment users…
Benjamin
  • 2,108
  • 2
  • 26
  • 46
3
votes
1 answer

undefined method 'dragonfly_accessor'

I am new to dragonfly and trying to go through the setup directions on the main documentation page for rails. Not using Active Record. My steps: 1) add to Gemfile gem 'dragonfly', "~>1.0.3" 2) bundle install 3) rails g dragonfly created…
3
votes
1 answer

Rails public/system for user files

Both Rails gems DragonFly and Paperclip use public/system folder to store uploaded files. As far as I know this folder is accessible by everybody - at least the root files, 404.html or others. How can I protect these uploaded files? Is there any…
Volodymyr
  • 1,136
  • 3
  • 11
  • 28
3
votes
2 answers

Rails 3 and RefineryCMS - Dragonfly::Shell::CommandFailed in Refinery::Admin::ImagesController#create

Looks like multiple people have this same/similar issues and there are a couple of reported fixes for it that I've found on SO here . Unfortunately, they are not working for me. I'm running MacOS Lion. Here is what I've done so far: 1) Standard…
Don Leatham
  • 2,694
  • 4
  • 29
  • 41
1
2
3
9 10