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

Dragonfly convert not working with ImageMagick's profile option

I am trying to generate an RGB thumbnail for a CMYK pdf file using the Dragonfly gem. It is working fine with this code: file.image.convert("-flatten -density 300 -quality 100", 'format' => 'jpg', 'frame' => 0).url The result is the correct url of…
Railsana
  • 1,813
  • 2
  • 21
  • 30
0
votes
0 answers

Multi file upload with polymorphic association [Rails, Dragonfly]

I am searching for an easy solution how to multi upload more than one file. The idea is that it should use polymorphic association, so I dont have to write another model for every model that will use attachment. But I am stucked in how to join…
0
votes
1 answer

param is missing or the value is empty: gallery

The problem is with "strong parameters" in rails. I use dragonfly for uploading images. The problem is that if I send an empty form I do not get any parameters for error handling. What can be the reason? Controller: There is still also a method…
Vadim B
  • 73
  • 9
0
votes
1 answer

Dragonfly on the fly thumbs, server side cache?

I'm using dragonfly to generate thumbs on the fly, but i've noticed that they are generated on each single page reload, which is not good. Reading on dragonfly documentation I see it's recommended to add the rack-cache gem, but the documentation for…
Arnold Roa
  • 7,335
  • 5
  • 50
  • 69
0
votes
5 answers

Render Dragonfly images in PDF using wicked-pdf

I am trying to render a pdf of my model containing images stored with dragonfly using wkhtmltopdf but I can't get it to work. The html page renders fine when I use the debug option for wkhtmltopdf but the pdf itself just gets an empty box where the…
Ozgar
  • 305
  • 2
  • 14
0
votes
1 answer

Rails gem Dragonfly default storage path changing

Dragonfly saves files under the (environment) directory, like: public/system/dragonfly/development/ or public/system/dragonfly/production/ is it possible to make the common directory and save all under (dragonfly) for production and…
Neon_10
  • 711
  • 2
  • 7
  • 19
0
votes
1 answer

Dragonfly question

I tried switching from gem rails 3.0.0.rc to rails 3.0.0 in my Gemfile recently and when doing so I got a problem with Dragonfly when starting the server. The error message…
Erik
  • 473
  • 5
  • 6
0
votes
3 answers

Storing Images in Postgres DB Store RefineryCMS with Dragonfly

My application is a refineryCMS which is been hosted on the heroku server . I need to store the images on the postgres DB store. I got one gem dragonfly-activerecord , but not able to keep it on database . I tried: Configure Dragonfly itself (in…
0
votes
3 answers

How get correct path default image using gem dragonfly?

I use for loading files gem dragonfly I have model Photo: class Photo < ApplicationRecord dragonfly_accessor :avatar do default 'public/avatar.png' end ................................ end When i call…
Stefan Hansch
  • 1,550
  • 4
  • 22
  • 55
0
votes
1 answer

Ruby on Rails Dragonfly

I have the following Model which has an accessor that receives an audio file with WAV format and then stores it class Audio < ActiveRecord::Base belongs_to :contribution belongs_to :recorder dragonfly_accessor :audio, :app_name => :videos…
Moe
  • 270
  • 5
  • 12
0
votes
1 answer

Gem dragonfly. How to make the list of current files on edit view?

I have model Project and in model have field documents(files). I am using gem dragonfly. When editing a project, how to make the list of current files? At this time on the edit page the list of files fields show: "The file is not selected". I do…
Stefan Hansch
  • 1,550
  • 4
  • 22
  • 55
0
votes
2 answers

Why do iphone images have the wrong orientation?

Our ruby/rails web app supports taking images using mobile devices. However, when taking an image using an iphone the orientation in the web view is sideways when viewed through [android, windows, mac]. When viewed through an iphone, the image has…
Peter Black
  • 1,142
  • 1
  • 11
  • 29
0
votes
2 answers

"DRAGONFLY: couldn't marshal decode string - got incompatible marshal file format (can't be read)"

In Rails 3.2.22, Ruby 2.2.2, I'm getting log writing failed. "\xCB" from ASCII-8BIT to UTF-8 (and a similar error with "\xD9") as the only output in the Rails log when I make a request. Literally, here's the development log when starting up and…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
0
votes
1 answer

Rails transaction with dragonfly

I am currently working on a Rails project. I have a nested form where I am allowing the user to upload multiple pictures. I am using dragonfly for the uploading I have also set up some constraints on the size and formats of the images a user can…
Codejunky
  • 632
  • 1
  • 6
  • 15
0
votes
1 answer

Proxy pdf from s3 and render it out inline

I am using dragonfly to handle my attachments and s3 to store the assets. I know i can serve directly from s3 but my client has locked down internet access so cant access them. So what i need to do is proxy the images through my domain. data =…
Jake McAllister
  • 1,037
  • 3
  • 12
  • 29