you should not need -channel rgba

the -transparent acts to turn on the alpha

Fred




>Sorry I didn't mean I wanted my output to be binary I need it to be 
>rgba. So what I am doing is
>convert input.png -transparent black -depth 8 -channel rgba output.rgba.
>
>See any issues with that
>Chris
>
>Fred Weinhaus wrote:
>
>>[magick-users] Convert Verify Output File.
>>But you had no input image. Is your input binary already 
>>(thresholded)? Clarify or provide a link to your input image.
>>
>>If all you want is to turn black to transparent in your input image, then
>>
>>convert input.suffix -transparent black -depth 8 output.png
>>
>>
>>If your image is not binary and you want it to be binary (black and 
>>white) and black transparent, then
>>
>>convert input.suffix -threshold xx% -transparent black -depth 8 output.png
>>
>>
>>for example;
>>
>>convert -size 100x100 gradient: -threshold 50% -transparent black 
>>-depth 8 tmp.png
>>
>>
>>
>>>
>>>I am trying to produce a binary representation of my input file where
>>>
>>>all black pixels are transparent.
>>>
>>>
>>>Chris
>>>
>>>
>>>  >
>>>
>>>  >
>>>
>>>  >
>>>
>>>  >
>>>
>>>  >  
>>>
>>>  >> Hi All,
>>>
>>>  >>
>>>
>>>  >> Firstly let me say thank you very much for all help provided thus far. I
>>>
>>>  >> am still seeing something kind of strange.
>>>
>>>  >>
>>>
>>>  >> When I perform a convert.
>>>
>>>  >> convert -depth 8 -size 512x512 - transparent black - matte demo.jpg
>>>
>>>  >> demo.rgba.
>>>
>>>  >>
>>>
>>>  >> My Icons seem to be appearing completely transparent for some reason.
>>>
>>>  >>
>>>
>>>  >> 1. What's the best way to verify my rgba file
>>>
>>>  >> 2. I looked at the properties of the file which said it was 32x32 which
>>>
>>>  >> kind of struct me as odd as I suspected it would be at the very least
>>>
>>>  >> 64x64 or 512x512...
>>>
>>>  >> 3. I suspect the problem with my images being transparent is my alpha
>>>
>>>  >> values are messed up. I was wondering if anyone could know why/how I can
>>>
>>>  >> check this.
>>>
>>>  >>
>>>
>>>  >> Thanks,
>>>
>>>  >>
>>>
>>>  >> Cheers
>>>
>>>  >> Chris
>>>
>>
>>
>>
>>No virus found in this incoming message.
>>Checked by AVG.
>>Version: 7.5.524 / Virus Database: 270.1.0/1492 - Release Date: 
>>6/9/2008 10:29 AM
>>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to