Page 1 of 1

Convert image from clipboard to clipboard (?)

Posted: 2019-10-15T06:19:19-07:00
by kadkam
Actually I have this command line for converting black to white from an image:

convert %1 -fuzz 0 -fill "#FFFFFF" -opaque "#000000" %1

now I need to do same but with the image source on clipboard.
(convert from clipboard and save on clipboard)
How I can do it?

thanks

Re: Convert image from clipboard to clipboard (?)

Posted: 2019-10-15T10:04:50-07:00
by snibgo
What version of IM, on what platform?

On Windows, you can use "clipboard:" for input or output, eg:

Code: Select all

convert %1 -fuzz 0 -fill "#FFFFFF" -opaque "#000000" clipboard:
convert clipbord: -fuzz 0 -fill "#FFFFFF" -opaque "#000000" %1