dragonfly
dragonfly copied to clipboard
A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra and much more!
I'm using Rack::Cache + Cloudfront over Heroku with the ruby and imagemagick buildpacks. I'm trying to figure out how to speed up my app which has images saved through dragonfly...
The issue is basically that `500x500^>` and similar resizes are not catched by the regex, but it's actually a valid resize according to imagemagick (it means: "attempt to fill area...
I'm currently evaluating different file upload solutions for Rails and as far as I can tell Dragonfly solely [relies](https://github.com/markevans/dragonfly/blob/b681ce2e44139aa7632c5331dc5601530b23d82f/lib/dragonfly/app.rb#L209) on the file extension to identify the content type of files....
Hello! How does the Dragonfly handle the PNG Bomb protection? For example, the Carrierwave gem has vulnerability to PNG-bomb exploit, and there are separate gem to fix it: https://github.com/DarthSim/carrierwave-bombshelter
Hey @markevans I was trying to implement this for some time now, my idea was to use the `after_assign` processor to optimize image, I've already done that. now I need...
https://travis-ci.org/wordsandwriting/lumen/builds/128174471: ``` $ bundle exec rake test /home/travis/.rvm/rubies/ruby-2.3.0/bin/ruby -w -I"lib" -I"/home/travis/build/wordsandwriting/lumen/vendor/bundle/ruby/2.3.0/gems/rake-11.1.2/lib" "/home/travis/build/wordsandwriting/lumen/vendor/bundle/ruby/2.3.0/gems/rake-11.1.2/lib/rake/rake_test_loader.rb" "test/accounts_test.rb" /home/travis/.rvm/gems/ruby-2.3.0@global/gems/bundler-1.12.2/lib/bundler/runtime.rb:89:in `rescue in block (2 levels) in require': There was an error while trying to load the...
Apparently there's something weird with the mime_type method for an image: ``` binary_image = File.open('test/fixtures/files/image.png').read image_uid = Dragonfly.app.store(binary_image) image = Dragonfly.app.fetch(image_uid) pry(main)> image.format DRAGONFLY: shell command: 'identify' '-ping' '-format' '%m...
Hi! I was trying to configure Dragonfly to return full URLs, and noticed that configuring the `url_host` option only affects the `Job#url` method, but not the `app.remote_url_for` (using the file...
Hi there, First off, thanks for maintaining a fantastic gem! I'd like to recommend this as a change and/or inquire as to whether a proper PR with this modification would...
Using `Dragonfly.app.fetch_url(remote_src).url` works fine, but I need to use thumb: ``` Dragonfly.app(:refinery).fetch_url(remote_src).thumb('750x443#').url ``` which gives: ``` NoMethodError: undefined method `thumb' for # ``` Dragonfly 1.0.12