Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 imagemagick 中尝试了以下代码:
convert input.jpg -morphology Erode Square output.jpg
我需要将其转换为 RMagick 以便我可以在 rails 应用程序中使用
您始终可以使用<<运算符编写它:
<<
MiniMagick::Tool::Convert.new do |convert| convert << 'input.jpg' convert << '-morphology' << 'Erode' << 'Square' convert << 'output.jpg' end