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

jruby dragonfly gem - "incompatible character encodings: UTF-8 and ASCII-8BIT" when open file with special characters

I'm a newbie in jruby, I'm currently working on a Jruby app that use Dragonfly gem to handle image upload. The problem here is when uploading a zip file (called abc.zip) containing a file name like this "nür ümläütö.PNG", the .png file is first…
2
votes
1 answer

Image url in JSON (RABL, Dragonfly, Ruby on Rails)

I'm using RABL gem, my user model has many posts users/show.rabl object @user attributes :id, :name child :posts do extends "posts/post" end posts/_post.rabl attributes :id, image: post.image.url I want to show post's image,…
Bennington
  • 295
  • 4
  • 13
2
votes
1 answer

Duplicate record with Dragonfly gem image in Rails

How do I duplicate an ActiveRecord object with a dragonfly image? I have the following. model: class Event < ActiveRecord::Base image_accessor :thumbnail attr_accessible :thumbnail, :remove_thumbnail, :retained_thumbnail validates…
kayluhb
  • 648
  • 7
  • 21
2
votes
0 answers

Dragonfly how resize small image and fill gaps with some color?

Is it possible to resize with Dragonfly gem small image 70x70 to 160x70 and fill gaps with specific color I try some recipes from here http://markevans.github.com/dragonfly/file.ImageMagick.html something like image.process(:resize, '160x70#',…
Volodymyr
  • 1,136
  • 3
  • 11
  • 28
2
votes
1 answer

Application timeout when saving a large file in rails using dragonfly

I am having trouble saving a large file, using a model with the dragonfly extension 'image_accessor'. We are trying to save the file to an Amazon S3 server, using fog and excon. On this save, we receive the error: A Excon::Errors::Timeout occurred…
MR-RON
  • 397
  • 2
  • 13
2
votes
1 answer

Dragonfly mass-assign error

I've added an "avatar" to my user model (Devise) and am getting the error Can't mass-assign protected attributes: avatar In my user model I have added: attr_accessible :avatar_uid, :avatar_name image_accessor :avatar And the form (simple_form) has…
Chris Edwards
  • 3,514
  • 2
  • 33
  • 40
1
vote
1 answer

Change local storage location in refinerycms for uploaded files

I'm using refinerycms 1.0.9 and I'd like to change the default location where dragonfly saves the files. Here is my dragonfly.rb in config/initializers: require 'dragonfly' app = Dragonfly[:app_name] app.datastore =…
Scott
  • 2,248
  • 3
  • 22
  • 24
1
vote
1 answer

Dragonfly: How to set max image size?

How to set max image size and weight/height using Dragonfly? Max size will be different for different models, so i would like to set it in model lvl.
korywka
  • 7,537
  • 2
  • 26
  • 48
1
vote
3 answers

ruby - Dragonfly - Force CMYK to RGB conversion when doing thumbnails

I'm using a nice enough cms (locomotive(github)) to allow some non-tech savy users to upload pictures to the system. The program is able to resize and crop pictures to any given size. Trouble is, Internet explorer doesn't know how to deal with…
kikito
  • 51,734
  • 32
  • 149
  • 189
1
vote
1 answer

Dragonfly, rails 3.2, Refinery Edge (2.0) ImageMagick on Centos 5.6

I have all the dependancies installed (or I think I do). I definitely have ImageMagick installed, however when using Refinery(v2.9 on rails 3.2) to upload images, I get the following error: NoMethodError (undefined method downcase' for…
1
vote
1 answer

Multi file upload with rails_admin (Carrierwave, Paperclip, Dragonfly)

I'm looking for a quick solution for multi file upload with rails_admin. Any ideas or solutions out there?
Daniel
  • 4,082
  • 3
  • 27
  • 46
1
vote
0 answers

Rails - Dragonfly image upload to OCI using angular frontend

I am uploading a file in angular and returning rails params in imageData and imageContent variable. Then in rails controller, I try to create a temp file using those parameters and assign it to the dragonfly accessor attribute but it doesn't get…
1
vote
1 answer

Is a dragonfly gem good solution for heavy loaded project

Is dragonfly gem good solution for heavy load project ? ( massive social application like Facebook for example) Because I think it's good solution for small - medium sized projects but I really don't like the idea that the image is rendered on the…
equivalent8
  • 13,754
  • 8
  • 81
  • 109
1
vote
0 answers

Not able to change S3 path of images in refinerycms (using dragonfly) in rails

Currently I am migrating a 10 year old on-prem application to heroku. We have good amount of data in our servers. dragonfly/refinerycms data stored at: public/system/refinery/... Images stored under refinery folder…
1
vote
0 answers

How ContentFlow scales the images?

Have been using ContentFlow as a JS image gallery. I have only one version of image files sized to 1000x750 landscapes and 600x800 portraits and none exceeds 300kb. i have set maxItemSize:400; When I first load the page, the images show scaled over…
Cacofonix
  • 465
  • 11
  • 19