I managed the get the color of pixel 10, 10 by issueing:
Code: Select all
convert logo: -format %[pixel:p{10,10}] info:
white
Code: Select all
convert logo: -transparent white logo.png
Both on Windows and Mac I can not get it to work.
I tried with and without quotes ...
convert logo: -transparent %[pixel:p{10,10}] logo.png
convert.exe: unrecognized color `%[pixel:p{10,10}]' @ warning/color.c/GetColorCompliance/1045.
convert logo: -transparent "%[pixel:p{10,10}]" logo.png
convert.exe: unrecognized color `%[pixel:p{10,10}]' @ warning/color.c/GetColorCompliance/1045.
convert -version
Version: ImageMagick 6.8.8-10 Q16 x86 2014-03-25 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib