I tried the following code in imagemagick:
convert input.jpg -morphology Erode Square output.jpg
I need to convert it to RMagick so that I can use rails in the application
You can always write it with the operator << :
<<
MiniMagick::Tool::Convert.new do |convert| convert << 'input.jpg' convert << '-morphology' << 'Erode' << 'Square' convert << 'output.jpg' end
Source: https://habr.com/ru/post/1212695/More articles:Hibernate event listeners for JPA callbacks - javaIs it possible to assert tearDown in the unittest method? - pythonRealm query request results in nullpointerexception error - androidJavaScript document.getElementById ("id") and id attribute - javascriptAngularJS "Controller-like" in templates - javascriptWhen does requireJS require an asynchronous call? When is it in sync? - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1212697/invert-only-white-colors-to-black-with-jquery-on-a-page&usg=ALkJrhghj4oJrM01oLv-81vqTk3Jr-tyKAError handling in std :: ofstream when writing data - c ++How to create one uwsgi log file per day? - loggingChange Android keystore password - androidAll Articles