RMagick4J: Status Update 09/03/09

Finally I figure out the problem with the convolve method. The code I wrote was only prepared to deal with TYPE_INT_ARGB BufferedImages but when reading a image from a file, it doesn’t ensure this type. Now this is fixed and working.

Furthermore, I added charcoal, solarize and shade effects. The latter gave some problem while testing, but finally the problem was in test not in code. From now on, the to_threshold method must be used in test when dealing with numbers that depend on the QuantumRange. This problem is due that QuantumRange can differ from one ImageMagick installation to another, but RMagick4J always uses 255.

Here you are some examples (the guy that looks like me is actually my non-existent twin brother):

RMagick RMagick4J (This is what I do)
original
original original
charcoal 0.75 (RMagick4J is not normalized)
Charcoal RMagick CharcoalEffect
edge 5
Edge RMagick EdgeEffect
shade true, 50, 50
Shade RMagick ShadeEffect
solarize 27.5/255*QuantumRange
Solarize RMagick SolarizeEffect

Author: Serabe

Mathematician, and Ruby and JavaScript programmer. Sometimes I speak at conferences and local meetups.

Leave a Reply

Your email address will not be published. Required fields are marked *