rmagick-temp / rmagick

An interface to the ImageMagick and GraphicsMagick image processing libraries.
http://rmagick.rubyforge.org/
MIT License
790 stars 102 forks source link

RMagick ignoring border_color #1

Open rggjan opened 14 years ago

rggjan commented 14 years ago

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...

rggjan commented 14 years ago

See http://rubyforge.org/tracker/index.php?func=detail&aid=27874&group_id=12&atid=133

linduxed commented 11 years ago

Confirmed to still be the case in the latest version of RMagick @mmaiza.