Code: Select all
convert shirt0.jpg -recolor '1 0 0 0 0 0 1 1 1' shirtmod01.jpg
Code: Select all
convert shirt0.jpg -recolor '1 0 0 0 0 0 1 1 1' shirtmod01.jpg
The rows are the source (input) and columns are the destination (output). If you want to learn how to use -recolor, see the interactive color matrix at http://www.adobetutorialz.com/articles/ ... lor-MatrixBut i am not able to get the same shade in red or yellow or some other color. Can u tell me what are these six parameters of recolor
-recolor '0 0 1 0 0 1 1 1 1' whats this numbers tells ? which one is the source and which one is the target.??
Code: Select all
<?php
if(isset($_POST['fabric2_Sleeve_Style1']))
{
exec("convert shirt.jpg -recolor '1 1 1 0 0 1 0 0 1' shirtmod1.jpg");
$imagepath = "shirtmod1.jpg";
echo "<img style='float:right;' src='$imagepath' />";
}
?>
Code: Select all
exec("convert shirt.jpg -recolor '0 0 1 0 0 1 1 1 1' shirtmod3.jpg");
sujan.dasmahapatra wrote:what does it mean by
convert -size 100x100 gradient: -recolor \
"0.53 0.53 1 \
0.81 0.82 1 \
0.92 0.92 1" \
result_skyblue.png
it should be convert source.png right. you have not mentioned source image.
I think it is
convert source.png -recolor \
"0.53 0.53 1 \
0.81 0.82 1 \
0.92 0.92 1" \
result_skyblue.png
Yes, that is the syntax I had in mind to shade grays to white, but have black remain black. That is what we typically do for colorizing grayscale images as per Anthony's pages.sujan.dasmahapatra wrote:now my color shades are coming properly friend. I am following your suggestion for +level-color its coming perfect like this
exec("convert shirt.jpg +level-colors black,blue shirtmod3.jpg");
Thanks a lot.