Giter VIP home page Giter VIP logo

rmagick's Introduction

A new release 2.13.2 of RMagick is now available on github as well as rubygems.

This release will fix the installation issues due to ruby 1.9.3 and ImageMagick 6.8+. You can install it the usual way with bundle by adding to Gemfile:

gem 'rmagick', '2.13.2'

or if you want to be on edge:

gem 'rmagick', '2.13.2', :git=>'http://github.com/rmagick/rmagick.git'

You also install it directly by doing:

gem install rmagick

- Moncef Maiza.

rmagick's People

Contributors

bricef avatar brysgo avatar mmaiza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rmagick's Issues

Converting JPEG from RGB to CMYK results in segfault

Trying to save any image as a CMYK Jpeg will result in a crash. If you change CMYK to any other colorspace such as RGB, CMY, or Gray it writes the image OK.

My test script is as follows:

require 'rubygems'; require 'RMagick'

i = Magick::Image.read('test.jpg').first 
i.write("cmyk.jpg") do |ii|
    ii.format = 'JPEG'
    ii.colorspace = Magick::CMYKColorspace
end
$ ruby test.rb 
test.rb:4: [BUG] Segmentation fault

gdb says the segfault is in ImageMagick here:

0x0000000803642ef7 in WriteJPEGImage (image_info=0x80386f000, image=0x803859000) at coders/jpeg.c:2604
2604                  *q++=(JSAMPLE) (ScaleQuantumToChar((Quantum) (QuantumRange-

However the following command line works fine, so it must be something that RMagick is (not?) doing:

convert test.jpg -colorspace CMYK cmyk.jpg

Environment is Ruby 1.9.3-p194, ImageMagick 6.7.7-7, RMagick 2.13.1, FreeBSD 8.2, gcc 4.2.1

Segfaults w/ 1.9.2 and threads

Using RMagick in a thread under 1.9.2 causes a segfault.

$ cat thread-rmagick.rb
require "RMagick"

Thread.new {
  i = Magick::Image.read("image.png")
}

$ ruby thread-rmagick.rb
thread-rmagick.rb:4: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

-- control frame ----------
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :read
c:0003 p:0019 s:0007 b:0007 l:001598 d:000006 BLOCK  thread-rmagick.rb:4
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
thread-rmagick.rb:4:in `block in <main>'
thread-rmagick.rb:4:in `read'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Ruby: 1.9.2p0
RMagick: 2.13.1
ImageMagick: 6.6.4-2

Mac OS X 10.6

Incompatibility with ImageMagick installed via Homebrew and RMagick under MacRuby

I'm having a heck of a time getting a few excellent pieces of software to work together.

I installed ImageMagick via homebrew. I even updated brew and re-installed it despite the only addition to ImageMagick being rsvg support.

ImageMagick Version:

Version: ImageMagick 6.7.5-7 2012-02-28 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:  OpenCL

Then, via RVM, I installed MacRuby, created a gemset for my project and installed RMagick into it:

$ which ruby
/Users/jason/.rvm/rubies/macruby-0.10/bin/ruby

$ ruby --version
MacRuby 0.10 (ruby 1.9.2) [universal-darwin10.0, x86_64]

$ which gem
/Users/jason/.rvm/rubies/macruby-0.10/bin/gem

$ gem --version
1.4.2

$ rvm current
macruby-0.10@seb

$ gem list --local

*** LOCAL GEMS ***

json (1.6.5)
rmagick (2.13.1)

But when I go to test my installation, I get an RMagick2.so LoadError.

$ irb -rubygems -r RMagick
/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macirb:20:in `block': no such file to load -- RMagick2.so (LoadError)
    from /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macirb:31:in `block'
    from /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macirb:9:in `block'
    from /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macirb:7:in `<main>'

I suspect the problem is that since homebrew compiles all the items, and it was compiled by my version of OS X Lion with Xcode 4.3's toolchain, (llvm-gcc, I believe?), the default library output name is .bundle instead of .so

$ ls ~/.rvm/gems/macruby-0.10\@seb/gems/rmagick-2.13.1/lib/
RMagick.rb       RMagick2.bundle* rvg/

I assume there may be some kind of compiler options that I could use to force Homebrew to compile ImageMagick in the way I want, but (if I'm correct so far) ideally RVM would be able to use the .bundle file as well as the .so, for true cross platform support.

Am I close?

Problems installing with homebrew (and not macports)

I hardwired the following to be able to install rmagick, since I don't have Macports:

$ sudo ln -s /bin/mkdir /opt/local/bin/gmkdir $ sudo ln -s /usr/bin/install /opt/local/bin/ginstall

Because I've seen in lines 85 and 86 of ext/RMagick/Makefile:

MAKEDIRS = /opt/local/bin/gmkdir -p INSTALL = /opt/local/bin/ginstall -c

Shouldn't the Makefile test if /opt/local/bin/gmkdir and /opt/local/bin/ginstall exists?

Regards,

Tute.

Problem with ruby 1.9.2 on Snow Leopard

When I required RMagick, I get these errors:

dyld: lazy symbol binding failed: Symbol not found: _rb_intern2
  Referenced from: /Users/joseph/.rvm/gems/ruby-1.9.2-head/gems/rmagick-2.13.0/lib/RMagick2.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_intern2
  Referenced from: /Users/joseph/.rvm/gems/ruby-1.9.2-head/gems/rmagick-2.13.0/lib/RMagick2.bundle
  Expected in: flat namespace

Scale doesn't work

In my ruby code I'm just using this
"
require 'RMagick'

clown = Magick::Image.read("clown.jpg").first
clown.scale(125,125)
clown.write('crop_resized.jpg')
"

But the outputted image is the same size.

Help me!

Regards Joshua

Rmagick fails to require lcms-2.1

Snow Leopard 10.6.7

/Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.8/lib/active_support/dependencies.rb:239:in `require': dlopen(/Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.1/lib/RMagick2.bundle, 9): Library not loaded: /usr/local/Cellar/little-cms/2.1/lib/liblcms2.2.dylib (LoadError)
Referenced from: /Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.1/lib/RMagick2.bundle
Reason: image not found - /Users/andoriyu/.rvm/gems/ruby-1.9.2-p180/gems/rmagick-2.13.1/lib/RMagick2.bundle

Thing is homebrew doesn't have formula fir little-cms 2.1, only 1.19. Is there any work around?

Segfault on install

Just installed RMagick on OSX 10.6 Ruby-1.9.2-p180 and came across this:

/Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rmagick-2.13.1/lib/rmagick.rb:1635: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]

-- control frame ----------
c:0080 p:---- s:0438 b:0438 l:000437 d:000437 CFUNC  :read
c:0079 p:0023 s:0434 b:0434 l:0013d8 d:001990 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rmagick-2.13.1/lib/rmagick.rb:1635
c:0078 p:---- s:0431 b:0431 l:000430 d:000430 FINISH
c:0077 p:---- s:0429 b:0429 l:000428 d:000428 CFUNC  :each
c:0076 p:0025 s:0426 b:0426 l:0013d8 d:0013d8 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rmagick-2.13.1/lib/rmagick.rb:1634
c:0075 p:---- s:0421 b:0421 l:000420 d:000420 FINISH
c:0074 p:---- s:0419 b:0419 l:000418 d:000418 CFUNC  :new
c:0073 p:0026 s:0415 b:0415 l:000414 d:000414 METHOD /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:37
c:0072 p:0033 s:0412 b:0409 l:002270 d:001c50 BLOCK  /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:27
c:0071 p:---- s:0406 b:0406 l:000405 d:000405 FINISH
c:0070 p:---- s:0404 b:0404 l:000403 d:000403 CFUNC  :map
c:0069 p:0068 s:0401 b:0401 l:002270 d:002270 METHOD /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:26
c:0068 p:0111 s:0397 b:0397 l:000396 d:000396 METHOD /Users/jack/Code/identified/analyse-me/app/models/infographic.rb:19
c:0067 p:0043 s:0392 b:0392 l:000391 d:000391 METHOD /Users/jack/Code/identified/analyse-me/app/controllers/pages_controller.rb:12
c:0066 p:0014 s:0389 b:0389 l:000388 d:000388 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb:4
c:0065 p:0015 s:0383 b:0383 l:000382 d:000382 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:167
c:0064 p:0041 s:0378 b:0378 l:001ec0 d:001ec0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb:10
c:0063 p:0010 s:0374 b:0374 l:0016b0 d:000373 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:18
c:0062 p:0132 s:0372 b:0372 l:000371 d:000371 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:434
c:0061 p:0113 s:0366 b:0366 l:000365 d:000365 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:386
c:0060 p:0024 s:0357 b:0357 l:000356 d:000356 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81
c:0059 p:0020 s:0351 b:0351 l:0016b0 d:0016b0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb:17
c:0058 p:0012 s:0347 b:0347 l:000346 d:000346 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/rescue.rb:17
c:0057 p:0010 s:0342 b:0342 l:000323 d:000341 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:30
c:0056 p:0017 s:0338 b:0338 l:000328 d:000337 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53
c:0055 p:0032 s:0336 b:0336 l:000335 d:000335 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb:21
c:0054 p:0036 s:0329 b:0329 l:000328 d:000328 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/notifications.rb:53
c:0053 p:0152 s:0324 b:0324 l:000323 d:000323 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb:29
c:0052 p:0143 s:0319 b:0319 l:000318 d:000318 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/params_wrapper.rb:201
c:0051 p:0032 s:0313 b:0313 l:000312 d:000312 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb:18
c:0050 p:0093 s:0308 b:0308 l:000307 d:000307 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/base.rb:121
c:0049 p:0084 s:0302 b:0302 l:000301 d:000301 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb:45
c:0048 p:0048 s:0297 b:0297 l:000296 d:000296 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal.rb:193
c:0047 p:0086 s:0292 b:0292 l:000291 d:000291 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal/rack_delegation.rb:14
c:0046 p:0030 s:0286 b:0286 l:000568 d:000285 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_controller/metal.rb:236
c:0045 p:---- s:0283 b:0283 l:000282 d:000282 FINISH
c:0044 p:---- s:0281 b:0281 l:000280 d:000280 CFUNC  :call
c:0043 p:0022 s:0277 b:0277 l:000276 d:000276 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:65
c:0042 p:0094 s:0271 b:0271 l:000270 d:000270 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:29
c:0041 p:0127 s:0265 b:0265 l:0016f0 d:001780 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152
c:0040 p:0014 s:0258 b:0258 l:000242 d:000257 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96
c:0039 p:0266 s:0253 b:0253 l:000252 d:000252 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:75
c:0038 p:0125 s:0243 b:0243 l:000242 d:000242 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95
c:0037 p:0092 s:0237 b:0237 l:0016f0 d:0016f0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141
c:0036 p:0025 s:0231 b:0231 l:000230 d:000230 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:531
c:0035 p:0015 s:0227 b:0227 l:000226 d:000226 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/best_standards_support.rb
c:0034 p:0015 s:0220 b:0220 l:000219 d:000219 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/etag.rb:23
c:0033 p:0068 s:0212 b:0212 l:000211 d:000211 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/conditionalget.rb:25
c:0032 p:0093 s:0205 b:0205 l:000204 d:000204 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/head.rb:14
c:0031 p:0046 s:0198 b:0198 l:000197 d:000197 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/params_parser.rb:21
c:0030 p:0054 s:0193 b:0193 l:000192 d:000192 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/flash.rb:243
c:0029 p:0031 s:0185 b:0185 l:000184 d:000184 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/session/abstract/id.rb:195
c:0028 p:0013 s:0177 b:0177 l:000176 d:000176 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/session/abstract/id.rb:190
c:0027 p:0020 s:0173 b:0173 l:000172 d:000172 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/cookies.rb:326
c:0026 p:0064 s:0165 b:0165 l:000164 d:000164 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activerecord-3.1.0/lib/active_record/query_cache.rb:62
c:0025 p:0029 s:0156 b:0156 l:000155 d:000155 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connect
c:0024 p:0014 s:0148 b:0148 l:001c70 d:000147 BLOCK  /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:29
c:0023 p:0155 s:0146 b:0146 l:000145 d:000145 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:392
c:0022 p:0024 s:0136 b:0136 l:000135 d:000135 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:81
c:0021 p:0013 s:0130 b:0130 l:001c70 d:001c70 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb:28
c:0020 p:0027 s:0126 b:0126 l:000125 d:000125 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/reloader.rb:68
c:0019 p:0015 s:0121 b:0121 l:000120 d:000120 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/sendfile.rb:101
c:0018 p:0049 s:0111 b:0111 l:000110 d:000110 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/remote_ip.rb:48
c:0017 p:0017 s:0107 b:0107 l:000106 d:000106 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/show_exceptions.rb:47
c:0016 p:0027 s:0099 b:0099 l:000098 d:000098 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/logger.rb:13
c:0015 p:0155 s:0095 b:0095 l:000094 d:000094 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/methodoverride.rb:24
c:0014 p:0032 s:0089 b:0089 l:000088 d:000088 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/runtime.rb:17
c:0013 p:0057 s:0080 b:0080 l:000079 d:000079 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/activesupport-3.1.0/lib/active_support/cache/strategy/local_cache.rb:72
c:0012 p:0068 s:0076 b:0076 l:000075 d:000075 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/lock.rb:15
c:0011 p:0124 s:0070 b:0070 l:000069 d:000069 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/actionpack-3.1.0/lib/action_dispatch/middleware/static.rb:53
c:0010 p:0032 s:0064 b:0064 l:000063 d:000063 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/engine.rb:455
c:0009 p:0015 s:0060 b:0060 l:000059 d:000059 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/content_length.rb:16
c:0008 p:0015 s:0051 b:0051 l:000050 d:000050 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/debugger.rb:21
c:0007 p:0015 s:0047 b:0047 l:000046 d:000046 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/railties-3.1.0/lib/rails/rack/log_tailer.rb:14
c:0006 p:0356 s:0042 b:0042 l:0011c0 d:0011c0 METHOD /Users/jack/.rvm/gems/ruby-1.9.2-p180@analyse-me/gems/rack-1.3.4/lib/rack/handler/webrick.rb:59
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/jack/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/jack/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:000cc8 d:000008 BLOCK  /Users/jack/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP  

to_blob with SVG returns nil

I'm trying to do an in-memory conversion of an SVG string into a PNG. I have to do it all in-memory because of my host (heroku) and needing to save the file blob out to AWS S3.

Here's the test code I'm trying to do.

im = Image.from_blob(self.image){self.format="svg"}
newim = im[0].to_blob(){format="png"}

self.image is just a string of SVG that I know works. (I've tested it with a Image.write out to PNG which works)

im is ok, and shows the image is being loaded, however the im[0].to_blob is returning nil (with or without the format="png")

is this a bug? Or am I doing something wrong?

thx

This installation of RMagick was configured with ImageMagick 6.6.1 but ImageMagick 6.5.9-3 is in use.

Hi, followed the instructions for installing ImageMagick and rmagic from this page:

http://rmagick.rubyforge.org/install-osx.html

And when I execute the following:

irb -rubygems -r RMagick

I get the error:

/usr/local/lib/ruby/gems/1.8/gems/rmagick-2.13.1/lib/RMagick2.bundle:RuntimeError: This installation of RMagick was configured with ImageMagick 6.6.1 but ImageMagick 6.5.9-3 is in use.

I have removed the rmagick gem:

gem uninstall rmagick

and reinstalled it, but I get the same error.

Some where the version of ImageMagic the gem build is picking up is correct but Ruby and/or the OS are picking up the old version. But I don't know how to change Ruby and/or the OS to "see" the correct version.

According to MacPorts I have 6.6.1 installed. So where is version 6.5.9-3 then?

identify -version

returns

Version: ImageMagick 6.6.1-5

Any clues to what I need to do here? I did have 6.5 installed earlier so I deleted the installation files in /opt/local/var/macports/software/ImageMagick/6.5.9-0_0+q16, removed the gem and reinstalled.

And then got the same error.

I have run out of things to try ...

Thanks.

Cannot compile on Slackware 13.1; complains of 'partial' ImageMagick

Neither the gem, nor tarballs of 2.13.1 or 2.13.0 will compile:

 $ ruby setup.rb
  ---> lib
  ---> lib/rvg
  <--- lib/rvg
  <--- lib
  ---> ext
  ---> ext/RMagick
  /usr/bin/ruby /home/ahmad/setup/software/ebookproduction/rmagick/ RMagick-2.13.1/ext/RMagick/extconf.rb
  checking for Ruby version >= 1.8.5... *** /home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick/extconf.rb failed ***
  Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options.

  Provided configuration options:
      --with-opt-dir
      --without-opt-dir
      --with-opt-include
      --without-opt-include=${opt-dir}/include
      --with-opt-lib
      --without-opt-lib=${opt-dir}/lib
      --with-make-prog
      --without-make-prog
      --srcdir=/home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick
      --curdir
      --ruby=/usr/bin/ruby
  /usr/lib/ruby/1.9.1/mkmf.rb:242:in `initialize': Permission denied - mkmf.log (Errno::EACCES)
      from /usr/lib/ruby/1.9.1/mkmf.rb:242:in `open'
      from /usr/lib/ruby/1.9.1/mkmf.rb:242:in `log_open'
      from /usr/lib/ruby/1.9.1/mkmf.rb:247:in `open'
      from /usr/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
      from /usr/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
      from /home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick/extconf.rb:114:in `<main>'
  setup.rb:655:in `command': system("/usr/bin/ruby" "/home/ahmad/setup/software/ebookproduction/rmagick/RMagick-2.13.1/ext/RMagick/extconf.rb") failed (RuntimeError)
      from setup.rb:660:in `ruby'
      from setup.rb:1238:in `extconf'
      from setup.rb:1230:in `config_dir_ext'
      from setup.rb:1532:in `block in traverse'
      from setup.rb:1549:in `dive_into'
      from setup.rb:1530:in `traverse'
      from setup.rb:1534:in `block (2 levels) in traverse'
      from setup.rb:1533:in `each'
      from setup.rb:1533:in `block in traverse'
      from setup.rb:1549:in `dive_into'
      from setup.rb:1530:in `traverse'
      from setup.rb:1524:in `block in exec_task_traverse'
      from setup.rb:1519:in `each'
      from setup.rb:1519:in `exec_task_traverse'
      from setup.rb:1223:in `exec_config'
      from setup.rb:991:in `exec_config'
      from setup.rb:812:in `invoke'
      from setup.rb:772:in `invoke'
      from setup.rb:1578:in `<main>'

Slackware 13.1 uses Ruby 1.9.1 and ImageMagick 6.5.9

Please help!

RMagick thumbnail doesn't work like ImageMagick thumbnail

In ImageMagick I can say:

 $ convert marcelle.jpg -thumbnail 300x1000 -quality 90  -unsharp 0x.5 marcelle_th.jpg

The -thumbnail 300x1000 part means: resize proportionally, and be smaller than or equal to width 300 and height 1000. In other words, 300x1000 represents a maximal bounding box.

But in RMagick, pic.thumbnail(300,1000) does not resize proportionally - instead, it makes an image whose size is exactly 300x1000.

Of course I can work around this by using GreaterGeometry and change_geometry, but my point is that having to do so makes thumbnail kind of useless. So I suggest that the lack of match between ImageMagick's thumbnail behaviour and RMagick's thumbnail behavior is a possible bug.

While reading image file,colorspace will not be set in block

this doesn't work,

image = Magick::Image.new(100,100){
 self.colorspace = Magick::LABColorspace
}
p image.colorspace == Magick::LABColorspace

this works

image = Magick::Image.new(100,100)
image.colorspace = Magick::LABColorspace
p image.colorspace == Magick::LABColorspace

Why can't the colorspace be set during the block? Is this a bug or intended (if so, why?).

Rails 3 Development mode crashes after the first usage of ImageMagick

The error message is:
cannot remove Object::Version

I think what's happening is that in development mode, Rails tries to clear itself, and reload the environment somewhat after each page. It's this process that is dying. (The code that actually manipulates my image works, and setting cache_classes: true avoids the problem, but makes it necessary to restart my development server constantly.

Stacktrace:
activesupport (3.0.3) lib/active_support/dependencies.rb:645:in remove_const' activesupport (3.0.3) lib/active_support/dependencies.rb:645:inremove_constant'
activesupport (3.0.3) lib/active_support/dependencies.rb:645:in instance_eval' activesupport (3.0.3) lib/active_support/dependencies.rb:645:inremove_constant'
activesupport (3.0.3) lib/active_support/dependencies.rb:521:in remove_unloadable_constants!' activesupport (3.0.3) lib/active_support/dependencies.rb:521:ineach'
activesupport (3.0.3) lib/active_support/dependencies.rb:521:in remove_unloadable_constants!' activesupport (3.0.3) lib/active_support/dependencies.rb:317:inclear'
railties (3.0.3) lib/rails/application/bootstrap.rb:60:in _callback_after_7' activesupport (3.0.3) lib/active_support/callbacks.rb:419:in_run_call_callbacks'
actionpack (3.0.3) lib/action_dispatch/middleware/callbacks.rb:44:in call' rack (1.2.1) lib/rack/sendfile.rb:107:incall'
actionpack (3.0.3) lib/action_dispatch/middleware/remote_ip.rb:48:in call' actionpack (3.0.3) lib/action_dispatch/middleware/show_exceptions.rb:46:incall'
railties (3.0.3) lib/rails/rack/logger.rb:13:in call' rack (1.2.1) lib/rack/runtime.rb:17:incall'
activesupport (3.0.3) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.2.1) lib/rack/lock.rb:11:incall'
rack (1.2.1) lib/rack/lock.rb:11:in synchronize' rack (1.2.1) lib/rack/lock.rb:11:incall'
actionpack (3.0.3) lib/action_dispatch/middleware/static.rb:30:in call' railties (3.0.3) lib/rails/application.rb:168:incall'
railties (3.0.3) lib/rails/application.rb:77:in send' railties (3.0.3) lib/rails/application.rb:77:inmethod_missing'
railties (3.0.3) lib/rails/rack/log_tailer.rb:14:in call' rack (1.2.1) lib/rack/content_length.rb:13:incall'
rack (1.2.1) lib/rack/handler/webrick.rb:52:in service' /Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:104:inservice'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:173:instart_thread'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:in start' /Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:162:instart_thread'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:95:in start' /Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:ineach'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:92:in start' /Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:23:instart'
/Volumes/files/jeffdeville/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/webrick/server.rb:82:in start' rack (1.2.1) lib/rack/handler/webrick.rb:13:inrun'
rack (1.2.1) lib/rack/server.rb:213:in start' railties (3.0.3) lib/rails/commands/server.rb:65:instart'
railties (3.0.3) lib/rails/commands.rb:30
railties (3.0.3) lib/rails/commands.rb:27:in tap' railties (3.0.3) lib/rails/commands.rb:27 script/rails:6:inrequire'
script/rails:6

Resolution management

Hi

I've next resource:

file: 300dpi.jpg
dimensions: 1782px x 1181px
size: 304539 bytes
resolution: 300dpi x 300dpi

when I use:

image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_1.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 300dpi x 300dpi
Result: Ok expected

Now I want to try reduce the resolution, I use:

image.density="72x72"
image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_2.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 72dpi x 72dpi
Result: resolutions seems change but size its the same at 300x300

No I try to reduze adding resample too, I use:

image.resample(72.0, 72.0)
image.density="72x72"
image.resize_to_fill!(460, 345)

I get:
file: 300dpi_conversion_3.jpg
dimensions: 460px × 345px
size: 21718 bytes
resolution: 72dpi x 72dpi
Result: resolutions seems the same 72x72 as above test, but size its the same at 300x300 too

???
How change resolutions works???, I don't get clareance about it on documentation, it's working ok?
How can I upload a image file (JPG, GIF, PNG) optional (TIFF, BMP), and transform they change resolution and resize?

Thanks

Can't rotate text

il = ImageList.new
(1..100).each do |t|
  i = Image.new(100,100)
  d = Draw.new
  d.rotate(t)
  d.annotate(i,0,0,0,0,'test') { self.gravity = CenterGravity; self.fill = "black" }
  il << i
end
il.montage.write('test.png')

Does not rotate text.
Neither does calling "annotate" with rotation argument (nominally the first two in the call.
Neither does setting the "affine" attribute on the Draw Object.
Neither does anything else I can think to try.

(I can rotate the image, of course - but it seems like the text should be rotatable without having to composite together two images.)

Does not install on Mac OS X 10.7.2 and Ruby 1.9.3-p0

Installing rmagick (2.13.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/sekrett/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb 
checking for Ruby version >= 1.8.5... yes
extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config.
checking for clang... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Wont Install with ImageMagick 6.6.1-5 on OSX 10.6.4

RMagick seems to be failing with the latest version of ImageMagick
http://gist.github.com/450815

I installed ImageMagick via the instructions here: http://www.imagemagick.org/www/binary-releases.html (first tried via brew but that just about destroyed my mac). ImageMagick seems to be working fine from the commandline, and I have the DYLD_LIBRARY_PATH set propertly as per the instructions. Commands like convert work fine.

gem install rmagick however still fails.

"stack level too deep" when calling Magick::Image.read within a fiber (Ruby 1.9.3-p0)

Hi!

I'm not exactly sure what's going on since I get inconsistent results between my Linux dev box and my OS X dev box, both running the same version of Ruby (1.9.3-p0), both using rvm, both running the same version of RMagick (2.13.1), and both running the same version of ImageMagick (6.7.1, compiled from source).

My OS X dev box plays along nicely, but my Linux dev box throws a "stack level too deep" exception when I call Magick::Image.read within a fiber. I'm using the fiber to untangle evented code in a fashion quite similar to igrigorik's em-synchrony project), so this is all being done within the context of EventMachine's event loop. If I downgrade to Ruby 1.9.2-p290 on my Linux box, RMagick begins to work fine again.

Really at quite a loss why OS X would behave but Linux wouldn't. I don't know what else I ought to provide to help track down the issue, but I'd be happy to post anything extra anyone requests.

Thanks!

Opacity

Hi,

I'm trying to convert a JPG to a PNG with a percentage of translucency. Here the code I've so far :

require 'RMagick'
image = Magick::Image.read(t.img.path).first
image.format = 'PNG'
image.background_color = 'none'
image.alpha(Magick::ActivateAlphaChannel)
image.matte = true
image.opacity = (Magick::TransparentOpacity - Magick::OpaqueOpacity) * (1.0 - alpha.to_f)

send_data image.to_blob,
  :filename => "texture__#{params[:id]}_alpha_#{params[:alpha]}.png",
  :disposition => 'inline',
  :type => "image/png"

I tried all things : alpha, matte, ... Nothing to do, to_blob return each time the image with no translucency. When exploring the code, I've noted a comment (on the image_opacity exemple) : "Replace use of #opacity attribute (which doesn't seem to be working) … [rmagick]"

ld: library not found for -lclparser OS X 10.7

bogon:RMagick-2.13.1 zcq100$ cat ext/RMagick/mkmf.log

checking for Ruby version >= 1.8.5... -------------------- yes

find_executable: checking for gcc... -------------------- yes

find_executable: checking for Magick-config... -------------------- yes

checking for ImageMagick version >= 6.4.9... -------------------- yes

checking for HDRI disabled version of ImageMagick... -------------------- yes

"gcc -o conftest -I/Users/zcq100/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-darwin10.7.0 -I/Users/zcq100/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/Users/zcq100/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I/Users/zcq100/安装包/rmagic/RMagick-2.13.1/ext/RMagick -I/usr/local/include/ImageMagick -I/usr/local/include/ImageMagick -fopenmp conftest.c -L. -L/Users/zcq100/.rvm/rubies/ruby-1.9.2-p180/lib -L/usr/local/lib -L/usr/local/lib -L/usr/X11/lib -R/usr/X11/lib -L/usr/local/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lclparser -framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries -lm -lpthread -lruby.1.9.1-static -lpthread -ldl -lobjc "
ld: library not found for -lclparser
collect2: ld returned 1 exit status
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: int main() {return 0;}
/
end */

if can't find this libaray

in place unsharp_mask

Why isn't there an unsharp_mask!

To do it in place, is this the usual way:

img = img.unsharp_mask

Code reorganization

Hi all,
the latest message in this code is we have a new developer.
Is happening anything on this site?
I'd like the reorganize the code along "lazy loading" with ActiveSupport::Dependencies.autoload_paths
Any issue with this?

RMagick ignoring border_color

With this code:

!/usr/bin/ruby

require 'RMagick'
include Magick

imagelist=ImageList.new('/home/jan/Desktop/test.jpg')

collage = imagelist.montage do
self.border_color='red'
self.border_width=10
self.geometry=Geometry.new(500, 500)
end

collage.write('/home/jan/Desktop/test_collage.jpg')

IMGCOMMAND="-border 10x10 -bordercolor red -geometry 500x500 /home/jan/Desktop/test_collage_original.jpg"
system "montage /home/jan/Desktop/test.jpg " + IMGCOMMAND

A red border is created with the original imagemagick (test_collage_original) while it is white with Rmagick (test_collage). It should be red in both cases...

RMagick, Rails 3 and Ruby 1.9.2-p0. CRASH

Running a Rails 3 application. It crashed on a ImageMagick from_blob method.
Here's the backtrace:
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/r_magick_utils.rb:7: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10]

-- control frame ----------
c:0109 p:---- s:0539 b:0539 l:000538 d:000538 CFUNC  :from_blob
c:0108 p:0027 s:0535 b:0535 l:000534 d:000534 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/r_magick_utils.rb:7
c:0107 p:0013 s:0526 b:0526 l:001770 d:001770 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/analysis/r_magick_analyser.rb:11
c:0106 p:---- s:0522 b:0522 l:000521 d:000521 FINISH
c:0105 p:---- s:0520 b:0520 l:000519 d:000519 CFUNC  :call
c:0104 p:0014 s:0516 b:0516 l:000499 d:000515 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:37
c:0103 p:---- s:0514 b:0514 l:000513 d:000513 FINISH
c:0102 p:---- s:0512 b:0512 l:000511 d:000511 CFUNC  :catch
c:0101 p:0011 s:0508 b:0508 l:000499 d:000507 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:36
c:0100 p:---- s:0505 b:0505 l:000504 d:000504 FINISH
c:0099 p:---- s:0503 b:0503 l:000502 d:000502 CFUNC  :each
c:0098 p:0054 s:0500 b:0500 l:000499 d:000499 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:35
c:0097 p:0065 s:0495 b:0492 l:000491 d:000491 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/analyser.rb:26
c:0096 p:0107 s:0484 b:0484 l:000483 d:000483 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/job.rb:196
c:0095 p:0015 s:0479 b:0479 l:000478 d:000478 METHOD (eval):3
c:0094 p:0067 s:0475 b:0473 l:000463 d:000472 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:138
c:0093 p:---- s:0469 b:0469 l:000468 d:000468 FINISH
c:0092 p:---- s:0467 b:0467 l:000466 d:000466 CFUNC  :each
c:0091 p:0017 s:0464 b:0464 l:000463 d:000463 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:136
c:0090 p:0142 s:0461 b:0461 l:000460 d:000460 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:32
c:0089 p:0023 s:0457 b:0457 l:002138 d:000456 LAMBDA /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/class_methods.rb:22
c:0088 p:---- s:0454 b:0454 l:000453 d:000453 FINISH
c:0087 p:0081 s:0452 b:0452 l:000442 d:000451 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1548
c:0086 p:---- s:0448 b:0448 l:000447 d:000447 FINISH
c:0085 p:---- s:0446 b:0446 l:000445 d:000445 CFUNC  :each
c:0084 p:0076 s:0443 b:0443 l:000442 d:000442 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1544
c:0083 p:0146 s:0436 b:0436 l:000435 d:000435 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1411
c:0082 p:---- s:0429 b:0429 l:000428 d:000428 FINISH
c:0081 p:---- s:0427 b:0427 l:000426 d:000426 CFUNC  :new
c:0080 p:0049 s:0423 b:0423 l:000422 d:000422 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:496
c:0079 p:0030 s:0417 b:0417 l:000416 d:000416 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/refinerycms-0.9.8/vendor/refinerycms/images/app/controllers/admin/images_controller.r
c:0078 p:0012 s:0414 b:0414 l:000413 d:000413 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/implicit_render.rb:4
c:0077 p:0015 s:0409 b:0409 l:000408 d:000408 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:150
c:0076 p:0041 s:0404 b:0404 l:000403 d:000403 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rendering.rb:11
c:0075 p:0010 s:0400 b:0400 l:000a10 d:000399 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:18
c:0074 p:0363 s:0398 b:0398 l:000397 d:000397 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:485
c:0073 p:0113 s:0392 b:0392 l:000391 d:000391 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:409
c:0072 p:0024 s:0383 b:0383 l:000382 d:000382 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:93
c:0071 p:0015 s:0377 b:0377 l:000a10 d:000a10 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:17
c:0070 p:0012 s:0373 b:0373 l:000354 d:000372 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:30
c:0069 p:0017 s:0369 b:0369 l:000359 d:000368 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52
c:0068 p:0032 s:0367 b:0367 l:000366 d:000366 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications/instrumenter.rb:21
c:0067 p:0036 s:0360 b:0360 l:000359 d:000359 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52
c:0066 p:0152 s:0355 b:0355 l:000354 d:000354 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:29
c:0065 p:0012 s:0349 b:0349 l:000348 d:000348 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rescue.rb:17
c:0064 p:0093 s:0344 b:0344 l:000343 d:000343 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:119
c:0063 p:0084 s:0338 b:0338 l:000337 d:000337 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/rendering.rb:40
c:0062 p:0048 s:0333 b:0333 l:000332 d:000332 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:133
c:0061 p:0086 s:0328 b:0328 l:000327 d:000327 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rack_delegation.rb:14
c:0060 p:0030 s:0322 b:0322 l:000568 d:000321 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:173
c:0059 p:---- s:0319 b:0319 l:000318 d:000318 FINISH
c:0058 p:---- s:0317 b:0317 l:000316 d:000316 CFUNC  :call
c:0057 p:0022 s:0313 b:0313 l:000312 d:000312 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:62
c:0056 p:0094 s:0307 b:0307 l:000306 d:000306 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:27
c:0055 p:0097 s:0301 b:0301 l:0018e0 d:000300 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:148
c:0054 p:---- s:0295 b:0295 l:000294 d:000294 FINISH
c:0053 p:---- s:0293 b:0293 l:000292 d:000292 CFUNC  :call
c:0052 p:0077 s:0287 b:0287 l:001578 d:001578 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/routing-filter-0.1.6/lib/routing_filter/adapters/rails_3.rb:64
c:0051 p:0092 s:0278 b:0278 l:0018e0 d:0018e0 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:139
c:0050 p:0025 s:0272 b:0272 l:000271 d:000271 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:492
c:0049 p:0015 s:0268 b:0268 l:000267 d:000267 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/best_standards_support.rb:17
c:0048 p:0093 s:0261 b:0261 l:000260 d:000260 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/head.rb:14
c:0047 p:0155 s:0254 b:0254 l:000253 d:000253 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/methodoverride.rb:24
c:0046 p:0046 s:0248 b:0248 l:000247 d:000247 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/params_parser.rb:21
c:0045 p:0054 s:0243 b:0243 l:000242 d:000242 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/flash.rb:182
c:0044 p:0027 s:0236 b:0236 l:000235 d:000235 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/session/abstract_store.rb:149
c:0043 p:0015 s:0225 b:0225 l:000224 d:000224 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/cookies.rb:287
c:0042 p:0014 s:0217 b:0217 l:002430 d:000216 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:32
c:0041 p:0019 s:0215 b:0215 l:000214 d:000214 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:28
c:0040 p:0051 s:0211 b:0211 l:000210 d:000210 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:12
c:0039 p:0019 s:0207 b:0207 l:002430 d:002430 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:31
c:0038 p:0015 s:0203 b:0203 l:000202 d:000202 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:
c:0037 p:0029 s:0199 b:0199 l:001840 d:000198 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:46
c:0036 p:0155 s:0197 b:0197 l:000196 d:000196 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:415
c:0035 p:0011 s:0187 b:0187 l:001840 d:001840 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:44
c:0034 p:0015 s:0183 b:0183 l:000182 d:000182 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/sendfile.rb:107
c:0033 p:0049 s:0173 b:0173 l:000172 d:000172 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/remote_ip.rb:48
c:0032 p:0015 s:0169 b:0169 l:000168 d:000168 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/show_exceptions.rb:46
c:0031 p:0027 s:0161 b:0161 l:000160 d:000160 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/logger.rb:13
c:0030 p:0032 s:0157 b:0157 l:000156 d:000156 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/runtime.rb:17
c:0029 p:0052 s:0148 b:0148 l:000147 d:000147 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/cache/strategy/local_cache.rb:72
c:0028 p:0043 s:0144 b:0144 l:000143 d:000143 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/middleware.rb:16
c:0027 p:0027 s:0139 b:0138 l:000137 d:000137 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:123
c:0026 p:0023 s:0135 b:0135 l:000134 d:000134 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:130
c:0025 p:0049 s:0132 b:0132 l:000131 d:000131 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:142
c:0024 p:0126 s:0128 b:0128 l:000127 d:000127 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:69
c:0023 p:0042 s:0121 b:0121 l:000120 d:000120 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:50
c:0022 p:0043 s:0117 b:0117 l:000116 d:000116 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/middleware.rb:16
c:0021 p:0027 s:0112 b:0111 l:000110 d:000110 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:123
c:0020 p:0023 s:0108 b:0108 l:000107 d:000107 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:130
c:0019 p:0049 s:0105 b:0105 l:000104 d:000104 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:142
c:0018 p:0126 s:0101 b:0101 l:000100 d:000100 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:69
c:0017 p:0042 s:0094 b:0094 l:000093 d:000093 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:50
c:0016 p:0014 s:0090 b:0090 l:000084 d:000089 BLOCK  /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11
c:0015 p:0019 s:0088 b:0088 l:000087 d:000087 METHOD <internal:prelude>:10
c:0014 p:0054 s:0085 b:0085 l:000084 d:000084 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11
c:0013 p:0193 s:0080 b:0080 l:000079 d:000079 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/static.rb:30
c:0012 p:0193 s:0073 b:0073 l:000072 d:000072 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/static.rb:30
c:0011 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:168
c:0010 p:0021 s:0062 b:0062 l:000061 d:000061 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:77
c:0009 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0008 p:0015 s:0055 b:0055 l:000054 d:000054 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/log_tailer.rb:14
c:0007 p:0015 s:0050 b:0050 l:000049 d:000049 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/content_length.rb:13
c:0006 p:0338 s:0042 b:0042 l:000041 d:000041 METHOD /Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/tomas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/tomas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70
c:0003 p:0126 s:0009 b:0009 l:002308 d:000008 BLOCK  /Users/tomas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/tomas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
/Users/tomas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/tomas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/log_tailer.rb:14:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:77:in `method_missing'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/application.rb:168:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/static.rb:30:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/static.rb:30:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11:in `call'
<internal:prelude>:10:in `synchronize'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lock.rb:11:in `block in call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:50:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:69:in `call!'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:142:in `invalidate'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:130:in `pass'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:123:in `forward'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/middleware.rb:16:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:50:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:69:in `call!'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:142:in `invalidate'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:130:in `pass'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-cache-0.5.2/lib/rack/cache/context.rb:123:in `forward'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/middleware.rb:16:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/runtime.rb:17:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.0/lib/rails/rack/logger.rb:13:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/show_exceptions.rb:46:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/sendfile.rb:107:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:415:in `_run_call_callbacks'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:31:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:12:in `cache'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/query_cache.rb:32:in `block in call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/cookies.rb:287:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/flash.rb:182:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/head.rb:14:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:492:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:139:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/routing-filter-0.1.6/lib/routing_filter/adapters/rails_3.rb:64:in `recognize_with_filtering'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/routing-filter-0.1.6/lib/routing_filter/adapters/rails_3.rb:64:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/rack-mount-0.6.13/lib/rack/mount/route_set.rb:148:in `block in call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:27:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_dispatch/routing/route_set.rb:62:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:173:in `block in action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal.rb:133:in `dispatch'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/rendering.rb:40:in `process'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:119:in `process'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rescue.rb:17:in `process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52:in `instrument'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/notifications.rb:52:in `block in instrument'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:17:in `process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:93:in `run_callbacks'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.0/lib/active_support/callbacks.rb:485:in `_run__774490128991872858__process_action__1582057511063075870__callbacks'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/rendering.rb:11:in `process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/abstract_controller/base.rb:150:in `process_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-3.0.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/refinerycms-0.9.8/vendor/refinerycms/images/app/controllers/admin/images_controller.rb:66:in `create'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:496:in `create'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:496:in `new'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1411:in `initialize'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1544:in `attributes='
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1544:in `each'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/activerecord-3.0.0/lib/active_record/base.rb:1548:in `block in attributes='
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/class_methods.rb:22:in `block (3 levels) in register_dragonfly_app'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:32:in `assign'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:136:in `set_magic_attributes'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:136:in `each'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/active_model_extensions/attachment.rb:138:in `block in set_magic_attributes'
(eval):3:in `width'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/job.rb:196:in `analyse'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/analyser.rb:26:in `analyse'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:35:in `call_last'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:35:in `each'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:36:in `block in call_last'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:36:in `catch'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:37:in `block (2 levels) in call_last'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/function_manager.rb:37:in `call'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/analysis/r_magick_analyser.rb:11:in `width'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/r_magick_utils.rb:7:in `rmagick_image'
/Users/tomas/.rvm/gems/ruby-1.9.2-p0/gems/dragonfly-0.7.4/lib/dragonfly/r_magick_utils.rb:7:in `from_blob'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap

support for ImageMagick morphology option

morphology option is powerful and extremely handy, and has been available since ImageMagick 6.6.0-1. Are there any plans to include the option in rmagick? It would be greatly appreciated.

uninitialized constant Magick::Hatchfill (NameError)

Having installed and verified ImageMagick I downloaded the latest gem for RMagick. I wanted to make sure that the RMagick installed correctly so I ran the following script:

require 'rubygems'
require 'rmagick'

canvas = Magick::Image.new(240, 300, Magick::Hatchfill.new('white', 'lightcyan2'))
gc = Magick::Draw.new

gc.fill('red')
gc.stroke('blue')
gc.stroke_width(2)
gc.path('M120, 150 h-75 a75, 75 0 1, 0 75, -75 z')
gc.fill('yellow')
gc.path('M108.5,138.5 v-75 a75,75 0 0,0 -75, 75 z')
gc.draw(canvas)

canvas.write('path.png')

No matter what I do (uninstall gem, install via tarball) I get the Hatchfill error.

Rmagick 1.15.17 doesn't work with ree

I get the following error. Please help.

Fetching: rmagick-1.15.17.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

    /Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby gem_extconf.rb

sh configure

Configuring RMagick 1.15.17
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking for ruby... /Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby
checking Ruby version... 1.8.7
checking for Magick-config... Magick-config
checking ImageMagick version... 6.7.5
checking for library containing InitializeMagick... none required
checking for snprintf... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for sys/types.h... (cached) yes
checking for AcquireMagickMemory... yes
checking for AcquireStringInfo... yes
checking for AdaptiveBlurImageChannel... yes
checking for AdaptiveResizeImage... yes
checking for AdaptiveSharpenImage... yes
checking for AdaptiveThresholdImage... yes
checking for AddDefinitions... no
checking for AddNoiseImageChannel... yes
checking for AllocateImageProfileIterator... no
checking for BilevelImageChannel... yes
checking for BlackThresholdImage... yes
checking for BlurImageChannel... yes
checking for ClearMagickException... yes
checking for CompareImageChannels... yes
checking for CompareImageLayers... yes
checking for CompositeImageChannel... yes
checking for ContrastStretchImageChannel... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ext/RMagick/extconf.rb
config.status: creating metaconfig
config.status: creating ext/RMagick/rmagick_config.h
configure:

This installation of RMagick 1.15.17 is configured for ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [i686-darwin11.3.0], MBARI 0x6770, Ruby Enterprise Edition 2012.02 and ImageMagick 6.7.5.
RMagick configuration completed successfully.

make
if test -n "/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/lib"; then
RUBYLIBDIR=--rbdir="/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/lib";
fi;
if test -n "/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/lib"; then
RUBYARCHDIR=--sodir="/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/lib";
fi;
/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby setup.rb config $RUBYLIBDIR $RUBYARCHDIR --data-dir=/share
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/ext/RMagick/extconf.rb
creating Makefile
<--- ext/RMagick
<--- ext
/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby setup.rb setup
---> lib
---> lib/rvg
<--- lib/rvg
<--- lib
---> ext
---> ext/RMagick
make
/usr/bin/gcc-4.2 -I. -I/opt/local/include -I/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/i686-darwin11.3.0 -I/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/i686-darwin11.3.0 -I/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/ext/RMagick -DRUBY_VERSION=0x187 -I/usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick -fno-common -c rmdraw.c
rmdraw.c: In function ‘Draw_annotate’:
rmdraw.c:448: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:96)
rmdraw.c: In function ‘get_dummy_tm_img’:
rmdraw.c:1419: warning: ‘AllocateImage’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:122)
rmdraw.c: In function ‘get_type_metrics’:
rmdraw.c:1504: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:96)
/usr/bin/gcc-4.2 -I. -I/opt/local/include -I/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/i686-darwin11.3.0 -I/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/i686-darwin11.3.0 -I/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/ext/RMagick -DRUBY_VERSION=0x187 -I/usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick -fno-common -c rmfill.c
rmfill.c: In function ‘point_fill’:
rmfill.c:132: warning: ‘SetImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:257)
rmfill.c:144: warning: ‘SyncImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:217)
rmfill.c: In function ‘vertical_fill’:
rmfill.c: In function ‘point_fill’:
rmfill.c:132: warning: ‘SetImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:257)
rmfill.c:144: warning: ‘SyncImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:217)
rmfill.c: In function ‘vertical_fill’:
rmfill.c:210: warning: ‘SetImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:257)
rmfill.c:216: warning: ‘SyncImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:217)
rmfill.c: In function ‘horizontal_fill’:
rmfill.c:280: warning: ‘SetImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:257)
rmfill.c:285: warning: ‘SyncImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:217)
rmfill.c: In function ‘v_diagonal_fill’:
rmfill.c:354: warning: ‘SetImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:257)
rmfill.c:366: warning: ‘SyncImagePixels’ is deprecated (declared at /usr/local/Cellar/imagemagick/6.7.5-7/include/ImageMagick/magick/deprecate.h:217)
rmfill.c: In function ‘h_diagonal_fill’:
ruby: unable to read font /usr/local/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1120. ruby: Postscript delegate failed/var/folders/b8/29641ny50sl9bpjrq2630qj40000gn/T/magick-mx5T0Bx9': No such file or directory @ error/ps.c/ReadPSImage/830.
/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/misc.rb:321:in get_type_metrics': Can't measure text. Are the fonts installed? Is the FreeType library installed? (RuntimeError) from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/misc.rb:321:inrender'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/misc.rb:696:in text' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/text.rb:65:inadd_primitives'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:264:in add_outermost_primitives' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:264:ineach'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:264:in add_outermost_primitives' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:236:indraw'
from OrigCoordSys.rb:17
post-setup.rb: OrigCoordSys.rb example returned error code 256
/Users/dhirengupta/.rvm/rubies/ree-1.8.7-2012.02/bin/ruby -I /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib -I /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./ext/RMagick PreserveAspectRatio.rb (example 5 of 183)
ruby: unable to read font /usr/local/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1120. ruby: Postscript delegate failed/var/folders/b8/29641ny50sl9bpjrq2630qj40000gn/T/magick-FcJlP2fY': No such file or directory @ error/ps.c/ReadPSImage/830.
/Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/misc.rb:321:in get_type_metrics': Can't measure text. Are the fonts installed? Is the FreeType library installed? (RuntimeError) from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/misc.rb:321:inrender'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/misc.rb:696:in text' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/text.rb:65:inadd_primitives'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/container.rb:72:in add_primitives' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/container.rb:72:ineach'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/container.rb:72:in add_primitives' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/container.rb:72:inadd_primitives'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/container.rb:72:in each' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/container.rb:72:inadd_primitives'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:264:in add_outermost_primitives' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:264:ineach'
from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:264:in add_outermost_primitives' from /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./lib/rvg/rvg.rb:236:indraw'
from RotateScale.rb:36
setup.rb: Too many examples failed. Search for "Help!" at
http://rmagick.rubyforge.org/install-faq.html.
post-setup.rb: RotateScale.rb example returned error code 256
make: *** [all] Error 1
Gem files will remain installed in /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17 for inspection.
Results logged to /Users/dhirengupta/.rvm/gems/ree-1.8.7-2012.02@kg/gems/rmagick-1.15.17/./gem_make.

I can install rmagick latest version but I need to install rmagick 1.15.17. Please help

Can't install rmagick

I am trying to install rmagick on a shared host. I don't have root access.
But I can compile things.

I compiled ImageMagick like this:

./configure --prefix=$HOME/bin --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=$FONTS

Then I exported the paths and tried to install the gem:

export LDFLAGS="-L/home/dorfbran/bin/lib" 
export CPPFLAGS="-I/home/dorfbran/bin/include/ImageMagick" 
gem install rmagick

This is the resulting error message:

[email protected] [~]# gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... yes

Warning: Found more than one ImageMagick installation. This could cause problems at runtime.
         /home/dorfbran/bin/bin/Magick-config reports version 6.6.3 Q8 is installed in /home/dorfbran/bin
         /usr/bin/Magick-config reports version 6.6.3 Q16 is installed in /usr
Using 6.6.3 Q8 from /home/dorfbran/bin.

checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information.

Here's the mkmf.log:
http://pastesite.com/17652

And here's the directory structure of ImageMagick:
http://pastesite.com/17635

These are the env:
http://pastesite.com/17636

Thanks for any help!

Cheers,
Phil

rmagick 1.15.17 Failed Install on Mac OS X

Attempting to bundle install a Gemfile from ChiliProject and running into an issue with rmagick compilation:

Gemfile: https://gist.github.com/1112118

The error in question appears to be:
rmagick.h:20:20: error: intern.h: No such file or directory

But the chunk that contains this in context is:

---> ext/RMagick
make
gcc -I. -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin11.0.0 -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I/Volumes/StorageVolume/Users/username/.rvm/gems/ruby-1.9.2-p290/gems/rmagick-1.15.17/ext/RMagick -DRUBY_VERSION=0x192  -I/usr/local/include/ImageMagick -fno-common   -o rmdraw.o -c rmdraw.c
In file included from rmdraw.c:10:
rmagick.h:20:20: error: intern.h: No such file or directory
In file included from rmagick.h:21,
                 from rmdraw.c:10:
/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
rmdraw.c: In function ‘Draw_annotate’:
rmdraw.c:448: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:96)
rmdraw.c: In function ‘get_dummy_tm_img’:
rmdraw.c:1419: warning: ‘AllocateImage’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:119)
rmdraw.c:1427: error: too many arguments to function ‘rb_cvar_set’
rmdraw.c: In function ‘get_type_metrics’:
rmdraw.c:1504: warning: ‘InterpretImageAttributes’ is deprecated (declared at /usr/local/include/ImageMagick/magick/deprecate.h:96)
make[1]: *** [rmdraw.o] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
    from setup.rb:664:in `make'
    from setup.rb:1258:in `setup_dir_ext'
    from setup.rb:1532:in `block in traverse'
    from setup.rb:1549:in `dive_into'
    from setup.rb:1530:in `traverse'
    from setup.rb:1534:in `block (2 levels) in traverse'
    from setup.rb:1533:in `each'
    from setup.rb:1533:in `block in traverse'
    from setup.rb:1549:in `dive_into'
    from setup.rb:1530:in `traverse'
    from setup.rb:1524:in `block in exec_task_traverse'
    from setup.rb:1519:in `each'
    from setup.rb:1519:in `exec_task_traverse'
    from setup.rb:1246:in `exec_setup'
    from setup.rb:996:in `exec_setup'
    from setup.rb:826:in `invoke'
    from setup.rb:772:in `invoke'
    from setup.rb:1578:in `'
make: *** [all] Error 1

Any help would be much appreciated so as to get this resolved.

Rmagick + Rails 3

Hi!

I'm trying to use rmagick as gem along Rails 3.0.0, but one problem has been a big stone in my way!!

So, when my Rails APP calls one module called FactoryImg, where I've used RMagick for 'read' a image from filesystem one error is showed in the console and my contener web is turned down!

You can see the log here http://pastie.org/1256503

Can help me??

Incorrect conversion from JPG CMYK => RGB (using Image Magick convert works)

When converting a JPG that is in the CMYK colorspace to the RGB colorspace using RMagick, the operation produces an image that looks like it has inverted colors (black turns to white). Using the Image Magick convert tool does not exhibit this problem. Sample image for which this happens together with the outputs are unfortunately not attached since github doesn't seem to support attachments for bugs. Email me for the files.

Version information and steps to reproduce listed below:

Platform: Ubuntu 9.10 (Karmic)

bugreport$ ruby --version
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]

RMagick command sequence:

bugreport$ irb 
irb(main):001:0> require 'RMagick'
=> true
irb(main):002:0> puts Magick::Long_version
This is RMagick 2.12.2 ($Date: 2009/09/15 22:09:44 $) Copyright (C) 2009 by Timothy P. Hunter
Built with ImageMagick 6.6.0-0 2010-03-03 Q8 http://www.imagemagick.org
Built for ruby 1.9.1
Web page: http://rmagick.rubyforge.org
Email: [email protected]
=> nil
irb(main):003:0> fn = 'original.jpg'
=> "original.jpg"
irb(main):004:0> orig = Magick::Image.read(fn).first
=> original.jpg JPEG 600x387 600x387+0+0 DirectClass 8-bit 849kb
irb(main):005:0> orig.colorspace
=> CMYKColorspace=12
irb(main):006:0> orig.colorspace = Magick::RGBColorspace
=> RGBColorspace=1
irb(main):007:0> orig.write('original_rmagick_rgb.jpg')
=> original.jpg=>original_rmagick_rgb.jpg JPEG 600x387 600x387+0+0 DirectClass 8-bit 724kb
irb(main):008:0> 

Image Magick convert command sequence:

bugreport$ convert --version
Version: ImageMagick 6.6.0-0 2010-03-03 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP 

bugreport$ convert original.jpg -colorspace rgb original_convert_rgb.jpg

vector density on read

I'm trying to convert a vector image to a raster image of a larger size, let's say 4x larger. Suppose just running convert img.svg img.png gives you a 100x100 image.

With ImageMagick's convert command, the conversion with enlargement would look like:

convert -density 288 img.svg img.png

Where 288 is of course 4x the default density of 72. And that works beautifully, resulting in the desired 400x400 image without the ugly artifacts you'd get from upsampling a 100x100 raster image to 400x400 (which is indeed why I'm using a vector image for the original in the first place).

But what I would have thought was the corresponding RMagick code:

image = Magick::Image.read('img.svg'){self.density = 144}.first
image.write('img.png')

... results in the same 100x100 image you'd get by just running convert img.svg img.png. Moreover, the image reports its density as "72x72" as though I hadn't supplied anything in read's block.

Am I simply approaching this problem wrong, or this a bug?

Can't install rmagick on my windows(Ruby192)

I always get the error:

"Error installing rmagick:
ERROR: Failed to build gem native extension.

checking for Ruby version >= 1.8.5....yes
checking for stdint.h..._extconf.rb afiled_
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers...."

Can someone please help me fix this.

ImageList destroy!

It looks like if you call destroy! on an ImageList instance it destroys only the last image in the list. If this is the case other people might make the same mistake I did and not be destroying what they thought they were.

Should ImageList.destroy do

il.each { |i| i.destroy! }

RMagick & Rails performance

I have a question on Server Fault where I'm having problems with RMagick consuming all CPU resources, but I thought I would ask the experts here some more pointed questions. I have a very simple one liner that can consume all 8 ECUs on a extra large Amazon server:

image = Magick::Image.read("pattern:checkerboard") { self.size = "400x400" }.first
image.format = "jpg"
send_data image.to_blob 

Running ApacheBench (ab -n 100 -c 10 "http://my.aws.box/checkerboard") causes the box to consume all 8 CPUs for 15 seconds. It almost acts as if RMagick is single threaded and can't process more than one thing at a time. But if I run it with one concurrent request the CPUs all get part of the load but don't fill up completely.

I'm really stumped by this RMagick performance and am grasping at straws. Any help at all would be appreciated. :)

ImageMagic installed via Homebrew doesn't work

I use a Mac, and homebrew for many packages including ImageMagick. I noticed a very annoying issue that I had to work around. Homebrew symlinks to /usr/local/bin and /usr/local/include. For example: /usr/local/include/ImageMagick -> /usr/local/homebrew/.../ImageMagick. This works fine with most libraries that need imagemagick since Magick-config produces the correct paths to the symlinks and the compilers just follow the sym links.

The rmagic gem compile does not seem capible of following symlinks and therefore cannot find /usr/local/include/wand/MagickWand.h which is there.

$ gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

        /Users/jkamenik/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for /usr/bin/gcc-4.2... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.13.1. Can't find MagickWand.h.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/jkamenik/.rvm/rubies/ruby-1.8.7-p352/bin/ruby

My solution was to install ImageMagick via https://github.com/maddox/magick-installer/blob/master/magick-installer.sh, which doesn't use symlinks. Without symlinks things work fine.

Error installing rmagick on Snow Leopard and REE 1.8.7

Hi,

I'm currently trying to install rmagick on a Snow Leopard box. I have ImageMagick-6.6.7 installed in /usr/local/image_magick (which $MAGICK_HOME is set to). My $LD_LIBRARY_PATH is /usr/local/image_magick/lib

I have the gem install output and the mkmf.log file. The two things notable in the output are that:

  1. The gcc flags include "-IAGICK_HOME/include/ImageMagick -fno-common" Seems like the $MAGICK_HOME variable is not being called properly
  2. Other compiler flags are looking for a $MAGICK_HOME-5 directory. Anyone know why that is happening?

I see a thread on this on rubyforge, but it doesn't look like there was a resolution: http://rubyforge.org/forum/forum.php?thread_id=48123&forum_id=33

Any additional thoughts and/or feedback are appreciated.

Thanks,
Mark

Could you please post a binary for ruby 1.9.1 on win32!?

Really, would it be so much trouble for you to please build and post a binary for a current ruby 1.9.1/win32 runtime? Tonight?! Otherwise this is blocking ruby development with 'rmagick' dependencies for a lot of people. I really have other things to do than build rmagick from source right now as I see it doesn't build with mingw! Thanks!

Image#remap produces unreasonable result

Image#remap produces an unreasonable result for the attached images. The pixel at 0,0 is remapped from (254, 254, 254) -> (255, 227,0) despite there being a (255, 255, 255) in the remap_image ("colors" below), which is much closer in RGB space than the color picked.

See: http://www.imagemagick.org/RMagick/doc/image3.html#remap

RMagick command sequence:

j@ubuntu:~/work/test$ irb

irb(main):001:0> require 'RMagick'
puts Magick::Long_version
=> true

irb(main):002:0> puts Magick::Long_version
This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) 2009 by Timothy P. Hunter
Built with ImageMagick 6.6.2-3 2010-06-08 Q8 http://www.imagemagick.org
Built for ruby 1.9.1
Web page: http://rmagick.rubyforge.org
Email: [email protected]
=> nil

irb(main):003:0> img = Magick::Image.read('input.png').first
=> input.png PNG 36x41 36x41+0+0 DirectClass 8-bit 1kb

irb(main):004:0> img.pixel_color(0,0)
=> red=254, green=254, blue=254, opacity=0

irb(main):005:0> colors = Magick::Image.read('colors.png').first
=> colors.png PNG 454x1 454x1+0+0 DirectClass 8-bit 1kb

irb(main):006:0> colors.pixel_color(413,0)
=> red=255, green=255, blue=255, opacity=0

irb(main):007:0> img.remap(colors, Magick::NoDitherMethod)
=> input.png PNG 36x41 36x41+0+0 PseudoClass 454c 8-bit 1kb

irb(main):008:0> img.pixel_color(0,0)
=> red=255, green=227, blue=0, opacity=0

irb(main):009:0> img.write('output.png')
=> input.png=>output.png PNG 36x41 36x41+0+0 PseudoClass 454c 8-bit 1kb

(Can't attach images to github issues, included them in the report emailed to the rmagick rubyforge email address)

Leaking memory?

I've got a script that reorients and resizes pics. I noticed that when I run it on a directory of files it was consuming all of the system memory. The directory has 200 images consuming 336MB. I fixed the problem by using destory! on image variables. After adding these method calls the script uses at most 100MB of memory. The working script is below.

My original expectations were that during each go through the loop that the original image memory would have been freed. In the documentation examples, there wasn't any using the destroy! call.

Fedora 13
Ruby 1.8.6
RMagick 2.13.1
ImageMagick 6.5.8.10

#!/usr/bin/ruby
require 'RMagick'
include Magick

ARGV.each { |filename|
  origpic = Image::read(filename).first
  newpic = origpic.auto_orient
  origpic.destroy!
  newpic.resize_to_fit!(720)
  newpic.write("lores_"+filename)
  newpic.destroy!
}

ruby 1.9.2, ImageMagick 6.6.9, RMagick 2.13.1, Mac OS 10.6

Whether from rails, script, or irb, anytime I attempt to even open an image the process locks up. It does not even respond to ctrl-c. I have to force quit it. I compiled ImageMagick with --disable-openmp and convert works as expected from the command line. Is this a known issue?

RMagick doesn't support HDRI ImageMagick

I'm trying to get RMagick to work with Fink's imagemagick package, but I get the following error:

RMagick does not work when ImageMagick is configured for High Dynamic Range Images.
Don't use the --enable-hdri option when configuring ImageMagick.

Some web searching turns up a patch for pld-linux:

--- RMagick-2.13.0/ext/RMagick/rmimage.c~      2009-12-21 11:34:57.000000000 0100
+++ RMagick-2.13.0/ext/RMagick/rmimage.c       2010-03-03 13:58:39.770186927 0100
@@ -9815,7 +9815,7 @@
 #else
             IndexPacket *indexes = GetIndexes(image);
 #endif
-            old_color = image->colormap[*indexes];
+            old_color = image->colormap[(unsigned long)*indexes];
         }
         if (!image->matte)
         {
--- RMagick-2.13.0/ext/RMagick/extconf.rb~     2009-12-24 07:03:02.000000000 
0100
+++ RMagick-2.13.0/ext/RMagick/extconf.rb      2010-03-03 14:00:35.276124598 
0100
@@ -151,15 +151,6 @@

   $magick_version = `Magick-config --version`.chomp

-  # Ensure ImageMagick is not configured for HDRI
-  unless checking_for("HDRI disabled version of ImageMagick") do
-    not (`Magick-config --version`["HDRI"])
-  end
-    exit_failure "\nCan't install RMagick #{RMAGICK_VERS}."+
-           "\nRMagick does not work when ImageMagick is configured for High 
ynamic Range Images."+
-           "\nDon't use the --enable-hdri option when configuring 
mageMagick.\n"
-  end
-
   # Save flags
   $CFLAGS     = ENV["CFLAGS"].to_s   + " " + `Magick-config --cflags`.chomp
   $CPPFLAGS   = ENV["CPPFLAGS"].to_s + " " + `Magick-config --cppflags`.chomp

what is going on?

http://pastebin.com/zY64KWAE

they are both installed... the image one was the one i decided to install...
I'm getting the above error message while trying to use DrQueueOnRails.
Not sure what is going on.

This error occurred while loading the following files:

RMagick

RMagick2.so

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.