Ask A Question

Notifications

You’re not receiving notifications from this thread.

Pipe convert out to Convert Input Minimagick

manish untwal asked in Gems / Libraries

Following is the command
convert abc.jpg -scale 50x50! -depth 8 -fuzz 20% -transparent white sparse-color:- | convert -size 50x50 xc: -sparse-color voronoi '@-' +dither -colors 5 -depth 8 -format %G\%c histogram:info:

Reply

With a gem like image_processing, I believe you would just make two calls to do this. The first would want to save the output to the file so that the second could operate on its output. That way you won't have to use pipes in Ruby.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,603+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.