Giter Site home page Giter Site logo

Comments (11)

parndt avatar parndt commented on August 20, 2024

Do you have ImageMagick installed?

from dragonfly.

wolfovich avatar wolfovich commented on August 20, 2024

Yes. media-gfx/imagemagick-6.6.5.6
without imagemagick I have another error

from dragonfly.

markevans avatar markevans commented on August 20, 2024

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.

parndt avatar parndt commented on August 20, 2024

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.

charlesdeb avatar charlesdeb commented on August 20, 2024

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.

markevans avatar markevans commented on August 20, 2024

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.

parndt avatar parndt commented on August 20, 2024

Please do patch Refinery if it needs it, thanks!

from dragonfly.

charlesdeb avatar charlesdeb commented on August 20, 2024

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.

rwestgeest avatar rwestgeest commented on August 20, 2024

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.

markevans avatar markevans commented on August 20, 2024

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.

mfilipe avatar mfilipe commented on August 20, 2024

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:inprocess'
[ 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:inapply'
[ 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:inapply'
[ 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:incall'
[ 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:incall'
[ 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:inforward'
[ 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:inlookup'
[ 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:incall'
[ 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:insend'
[ 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:inprocess_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:inmain_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:ininitialize'
[ 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:instart_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:instart_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:instart_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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.