Search found 4 matches

by mikebounds
2019-03-13T10:08:51-07:00
Forum: Users
Topic: How to replace colour with a 2-colour checkerboard pattern
Replies: 7
Views: 4493

Re: How to replace colour with a 2-colour checkerboard pattern

Thanks, this now works for any colour. I couldn't get "-transparent black" to work with -clone 0 or +clone with swap, but writing image to memory work, but would be interested if you do find out why it doesn't work with clone.

Mike
by mikebounds
2019-03-13T03:06:39-07:00
Forum: Users
Topic: How to replace colour with a 2-colour checkerboard pattern
Replies: 7
Views: 4493

Re: How to replace colour with a 2-colour checkerboard pattern

Thanks Fred - much appreciated- this does exactly what I wanted. I understand what it is doing, but don't understand all of the commands, especially making white into transparent - I have just used "-transparent white" in the past and this seems to work if I replace in your script so this ...
by mikebounds
2019-03-12T14:29:07-07:00
Forum: Users
Topic: How to replace colour with a 2-colour checkerboard pattern
Replies: 7
Views: 4493

Re: How to replace colour with a 2-colour checkerboard pattern

Example image: https://cdn1.imggmi.com/uploads/2019/3/13/65f6657dae556fd5ca2b1941726585ca-full.png Desired output with a checkerboard (each square of one pixel) of red and yellow: https://cdn1.imggmi.com/uploads/2019/3/13/35be69c6687148413d4e7a7a8e19bbe9-full.png blown up extract https://cdn1.imggmi...
by mikebounds
2019-03-12T11:52:29-07:00
Forum: Users
Topic: How to replace colour with a 2-colour checkerboard pattern
Replies: 7
Views: 4493

How to replace colour with a 2-colour checkerboard pattern

If I want to replace white with orange I can use

Code: Select all

convert orig.png -fill orange -opaque white new.png
But how would I replace white with a checkerboard pattern of red and yellow (dithered colour) ?

I am running ImageMagick 6.8.9-9 on Ubuntu 16.04