Solved with this code
<?php
$date = date_create();
//echo date_format($date, 'U') . "\n";
$pngDirectory = "uploadspng/"; #Directory where donut_black.png
$pagenameblack = 'donut_black.png';
$pagenamewhite = date_format($date, 'U').'_donut_white.png';
$pngWithPathBlack = $pngDirectory ...
Search found 3 matches
- 2014-10-15T01:50:44-07:00
- Forum: Developers
- Topic: [ASK] Convert Color/Black to White
- Replies: 3
- Views: 7928
- 2014-10-15T01:21:45-07:00
- Forum: Developers
- Topic: [ASK] Convert Color/Black to White
- Replies: 3
- Views: 7928
Re: [ASK] Convert Color/Black to White
Your background image needs to be made white or whatever color you want to use so that the alpha channel will show that color.
convert donut_black.png -alpha off -fill white -colorize 100 -alpha on donut_white.png
To see what is going on, extract the alpha channel and the background image ...
convert donut_black.png -alpha off -fill white -colorize 100 -alpha on donut_white.png
To see what is going on, extract the alpha channel and the background image ...
- 2014-10-14T22:13:20-07:00
- Forum: Developers
- Topic: [ASK] Convert Color/Black to White
- Replies: 3
- Views: 7928
[ASK] Convert Color/Black to White
Dear Expert,
I am newbie in Imagick. Kindly need your help what code in php for convert Color/Black symbol to white?
I tried to use below;
convert donut_black.png -edge 1 -negate donut_white.png
but still in the border.
I want convert donut_black.png :
http://i59.tinypic.com/sfknq9.png
to ...
I am newbie in Imagick. Kindly need your help what code in php for convert Color/Black symbol to white?
I tried to use below;
convert donut_black.png -edge 1 -negate donut_white.png
but still in the border.
I want convert donut_black.png :
http://i59.tinypic.com/sfknq9.png
to ...