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
1 answer

Change Dragonfly (Gem) File Permissions (i.e. to 0664)

Dragonfly creates files by default with permissions set to 0644 From https://github.com/markevans/dragonfly/blob/master/lib/dragonfly/temp_object.rb#L116 def to_file(path, opts={}) mode = opts[:mode] || 0644 prepare_path(path) unless…
branch14
  • 1,253
  • 11
  • 24
0
votes
1 answer

Dragonfly gem, image saving to DB but not appearing on page, "undefined method, 'dragonfly_accessor'" in Rails console

This question has been asked and answered (for that user), but my own experience has varied. First: Rails 4.0.4, Ruby 2.1.0, Dragonfly gem 1.0.5. I am using the Dragonfly gem for image uploads on this Rails 4 blog app and am experiencing an issue…
0
votes
1 answer

Rails file upload with dragonfly

Hello i have this problem with file upload in rails. I have set dragonfly up and it is working nicely in admin side, however then i try to upload my file (pdf or doc) it passes empty parameter for my file attribute okey here is the form: =…
user2945241
  • 360
  • 5
  • 19
0
votes
2 answers

Dragonfly image geometry format not conforming to ImageMagick documentation?

ImageMagick documentation says the following are valid image geometry argument forms: size General description (actual behavior can vary for different options and settings) scale% Height and width both scaled by specified…
Bad Request
  • 3,990
  • 5
  • 33
  • 37
0
votes
1 answer

Integrate Dragonfly into CKeditor in Rails Admin with Rails 3

I currently have CKeditor working splendid in my Rails Admin. But now I want to enable image upload so users can insert own images. I read that this is possible with paperclip and carrierwave but I'm using dragonfly for a lot of things so I don't…
FastSolutions
  • 1,809
  • 1
  • 25
  • 49
0
votes
1 answer

Why isn't this rails file attachment (using dragonfly) loading?

I have been at this one for a while and hitting a great wall of fail... I'm trying to pull some game info from Mochi Media's servers. I have the API hooks in place but when I try to access the file info with Dragonfly I'm getting the following…
dnyce
  • 415
  • 1
  • 6
  • 20
0
votes
1 answer

uninitialized constant Dragonfly::Server::Serializer

Getting this error on server NameError uninitialized constant Dragonfly::Server::Serializer Using debian+passenger+apache+Rails 3.2 + ruby 1.9.3
Grey
  • 676
  • 8
  • 23
0
votes
2 answers

Dragonfly not working in production

I am using Dragonfly with Nginx, unicorn and mini_magick. I am using mem_cache_store in production. Image upload and display works fine in development environment. But on production it fails with internal server error 500. I cannot see any logs on…
buddy
  • 189
  • 2
  • 16
0
votes
2 answers

rake aborted - is a directory/undefined method `downcase' for nil:NilClass

I've a rake task for importing pdf's from my filesystem into GridFS via dragonfly-gem. The task fails with no obvious reason. I appreciate any help. Thanks! The rake task: task :worksafety_files => :environment do # Importiert Archiv-Dateien via…
patrickkeller
  • 1,236
  • 2
  • 11
  • 20
0
votes
1 answer

How to work with Dragonfly's before_serve block to watermark pdf files

I'm trying to serve PDF files that are watermarked with a users email address and timestamp at the time of downloading a file using the dragonfly gem and I'm having a bit of trouble working with the before_serve block. What I'm not able to work out…
JamieD
  • 2,707
  • 2
  • 20
  • 19
0
votes
1 answer

Dragonfly across applications; Same image_uid, same host, different Basename

I am trying to port existing users from an old 3.1 rails application to a new rails 4.0 application. I assumed that having the same configuration and same image_uid's would be sufficient to port dragonfly images over. However, Although the base…
k_Dank
  • 685
  • 1
  • 7
  • 17
0
votes
1 answer

RefineryCMS - Custom Image Engine using Dragonfly for Multiple Resize on upload - MassAssign Error when trying commit uid to database

I've learnt much from the invaluable resource stackoverflow is. I am exceedingly greatful for the many excellent contributions made. Long live open source and those that make it real! For all the great information here already, I have not been able…
0
votes
1 answer

Dragonfly - Uploaded images not displayed

I am using dragonfly with jruby and apache tomcat to upload images. I am trying to display images that i am uplaoding dynamically using profile_picture.thumb('30x30#').url When I run the app using ruby on rails, the images are shown properly. But…
Sachin Kadam
  • 265
  • 2
  • 12
0
votes
1 answer

DragonFly attachment and BackBone.js

I'm trying to attach an image to a model using BackBone.js, in Rails all works as expected. But with BackBone.js I don't get how to attach an image and for example show it in the show template. as you'll see in the Gist I get None of the functions…
0
votes
0 answers

wrong URLs deploying to a subdirectory

in my view I have: <%= @project.file.name %> locally, in development, all works fine and I can download the file. But on my VPS in production I get a 404: [Mon Nov 05 18:28:40 2012] [error] [client…
1 2 3
9
10