Comments (11)
Do you have ImageMagick installed?
from dragonfly.
Yes. media-gfx/imagemagick-6.6.5.6
without imagemagick I have another error
from dragonfly.
I'm going to close this as I'm not sure if it's still an issue - it could well be that the upload form doesn't have multipart = true.
Feel free to reopen if it's still an issue
from dragonfly.
The RefineryCMS forms have multipart for image uploads, but you're right it could be no longer an issue and RefineryCMS has moved on from 0.9.8.9 considerably.
from dragonfly.
I'm getting a similar issue. I'm on windows 7 64 bit. I just installed GNUWin32 to get access to the file command which had been giving me grief with image uploads. The image file has been put into rails_root/public/system/images/2011/05/08 - although the log file looks like the thumb method call was looking in rails_root/public/sys - which doesn't exist. I can view the image (by pressing the eye icon) but no thumbnails show-up anywhere. I'm also getting lots of errors like these in my log:
Magick: invalid argument for option -resize': '180x135' @ error/convert.c/ConvertImageCommand/2320 Magick: invalid geometry
'225x255>'' @ error/geometry.c/ParseRegionGeometry/1327
Also, I'm not sure if this is related since I've been having this since I first installed refinery, but this error is coming up for pretty much every page load in the log:
cache error: bad URI(is not URI?): file: rails_root/tmp/dragonfly/cache/meta
where rails_root is something like d:/development/work files/and_so_on/
Maybe you are going to tell me this is a windows issue?
refinerycms 09.9.19
dragonfly 0.8.2
rails 3.0.7
also:
ruby 1.9.2
ImageMagick 6.6.6-7
from dragonfly.
The bad URI error is because you have a space in your rails root path.
To get around it you can mount Rack::Cache using URI.encode like in https://github.com/markevans/dragonfly/blob/master/lib/dragonfly/rails/images.rb#L22
(I guess if you're using refinery then that should be done in the refinery code)
from dragonfly.
Please do patch Refinery if it needs it, thanks!
from dragonfly.
Ok, I followed Mark's advice to solve the space in the file name issue. In the following file:
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rack-cache-1.0.1/lib/rack/cache/storage.rb:35:in `create_store'
I added the line:
uri = URI.encode(uri)
At line 34, just before the URI.parse command. This seems to have worked, but the imagemagick issue remains. I am now able to see the image I uploaded, but no thumbnails are being generated or displayed in the UI. The log file remains full of Magick errors as per my original post. Any further suggestions as to what I need to do to get ImageMagick working properly here?
from dragonfly.
I am having a similar issue - but i don't think it has anything to do with spaces in my path.
So no thumbnails and this in my log.
ImageMagick 6.3.7 11/17/10 Q16 installed
and refinerycms 2.0.3
Dragonfly::FunctionManager::UnableToHandle (None of the functions registered with #Dragonfly::Processor:0x98fd5b4 were able to deal
with the method call thumb(<Dragonfly::TempObject pathname=#<Pathname:/var/www/rails/www.dialoogtafels.nl/releases/2012041907540,"135x135#c"). You may need to register one that can.):
Note that the actual release directory is 2012041907540_6_ it seems to skip the 6
Btw it is only the thumb nails that fail
from dragonfly.
That output just truncates long strings so I don't think the release directory is the issue.
It could be that imagemagick, though installed, isn't being found.
If so, you can either make sure your path is set correctly or point to convert explicitly as in http://markevans.github.com/dragonfly/file.ImageMagick.html#Configuration
from dragonfly.
I applied the configuration suggest offered by @markevans but it doesn't work yet.
I'm using rmagick-1.15.17 and ImageMagick-6.2.8.0. Sorry, I can't update these version because the project code is old.
[ 2013-07-29 12:36:50.6867 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/function_manager.rb:43:in call_last': None of the functions registered with #<Dragonfly::Processor:0xb7179c1c> were able to deal with the method call thumb(<Dragonfly::TempObject pathname=#<Pathname:/srv/http/homologacao.vbrf.com.br/public/system/dragonfly/,"259x111#"). You may need to register one that can. (Dragonfly::FunctionManager::UnableToHandle) [ 2013-07-29 12:36:50.6868 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/processor.rb:5:in
process'
[ 2013-07-29 12:36:50.6868 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/job.rb:79:in apply' [ 2013-07-29 12:36:50.6869 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/job.rb:264:in
apply'
[ 2013-07-29 12:36:50.6869 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/job.rb:264:in each' [ 2013-07-29 12:36:50.6869 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/job.rb:264:in
apply'
[ 2013-07-29 12:36:50.6869 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/response.rb:25:in to_response' [ 2013-07-29 12:36:50.6870 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/server.rb:43:in
call'
[ 2013-07-29 12:36:50.6870 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/server.rb:39:in catch' [ 2013-07-29 12:36:50.6870 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/server.rb:39:in
call'
[ 2013-07-29 12:36:50.6870 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/dragonfly-0.9.14/lib/dragonfly/middleware.rb:11:in call' [ 2013-07-29 12:36:50.6871 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in
forward'
[ 2013-07-29 12:36:50.6871 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in fetch' [ 2013-07-29 12:36:50.6871 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in
lookup'
[ 2013-07-29 12:36:50.6871 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in call!' [ 2013-07-29 12:36:50.6872 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in
call'
[ 2013-07-29 12:36:50.6872 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/railties-3.0.20/lib/rails/application.rb:168:in call' [ 2013-07-29 12:36:50.6872 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/railties-3.0.20/lib/rails/application.rb:77:in
send'
[ 2013-07-29 12:36:50.6873 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@vbrf_homologation/gems/railties-3.0.20/lib/rails/application.rb:77:in method_missing' [ 2013-07-29 12:36:50.6873 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in
process_request'
[ 2013-07-29 12:36:50.6873 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler/thread_handler.rb:140:in accept_and_process_next_request' [ 2013-07-29 12:36:50.6873 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler/thread_handler.rb:108:in
main_loop'
[ 2013-07-29 12:36:50.6874 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:441:in start_threads' [ 2013-07-29 12:36:50.6874 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:435:in
initialize'
[ 2013-07-29 12:36:50.6874 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:435:in new' [ 2013-07-29 12:36:50.6875 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:435:in
start_threads'
[ 2013-07-29 12:36:50.6875 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:434:in times' [ 2013-07-29 12:36:50.6875 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:434:in
start_threads'
[ 2013-07-29 12:36:50.6876 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:433:in synchronize' [ 2013-07-29 12:36:50.6876 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:433:in
start_threads'
[ 2013-07-29 12:36:50.6876 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/lib/phusion_passenger/request_handler.rb:200:in `main_loop'
[ 2013-07-29 12:36:50.6876 14849/b5f48b90 Pool2/Implementation.cpp:1182 ]: [App 14891 stderr] from /home/agence/.rvm/gems/ruby-1.8.7-p374@global/gems/passenger-4.0.8/helper-scripts/rack-preloader.rb:130
from dragonfly.
Related Issues (20)
- Default content auto-whitelist doesn't work with FileDataStore
- Can't store resized pdf as jpg HOT 5
- Requesting filename without download file for custom stores HOT 2
- Turning Off Logs HOT 1
- Dragonfly unit test cases failing in Rails 4 HOT 1
- Dragonfly::FileDataStore::UnableToFormUrl: you need to configure server_root for Dragonfly::FileDataStore in order to form urls
- How to ignore "Dragonfly::FileDataStore destroy error"?
- Adding the ability to specify headers for a URL based attachment HOT 3
- Fetching url in the background
- after_assign's copy_to doesn't fire when using retained_image HOT 1
- SSL verification mode option
- warning: loading in progress, circular require considered harmful HOT 1
- is this version of Dragonfly compatible ? HOT 4
- Support for posix-spawn? HOT 2
- Security Issue Report HOT 1
- Guidance on upgrading to 1.4.0 HOT 7
- validate problems?
- CSS style color raising InvalidParameter when using plain generator HOT 1
- Questions about GHSA-qrgf-jqqm-x7xv HOT 2
- Allowing quality and interlace params for imagemagick thumb processor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dragonfly.