I have tried the following code in imagemagick:
convert input.jpg -morphology Erode Square output.jpg
I need to convert it into RMagick so that I can use in rails application
You can always write it using the <<
operator:
MiniMagick::Tool::Convert.new do |convert|
convert << 'input.jpg'
convert << '-morphology' << 'Erode' << 'Square'
convert << 'output.jpg'
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With