Issue by rggjan
Tuesday Feb 23, 2010 at 13:50 GMT
Originally opened as #1
With this code:
collage = imagelist.montage do
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...
Comment by rggjan
Tuesday Feb 23, 2010 at 13:54 GMT
Comment by linduxed
Saturday Nov 02, 2013 at 14:26 GMT
Confirmed to still be the case in the latest version of RMagick @mmaiza.
I was tracing sources to understand how self.border_color = 'red' works and noticed that the Color_to_PixelPacket function receives a pointer to montage->info->border_color, but if the color is specified as a string, it passes the pointer further to the Color_Name_to_PixelPacket function, but already as a value. My knowledge of C is quite vague, so I'm not sure if this is normal.
self.border_color = 'red'