imagemagick - How can I append a relatively sized label to an image? -
i have big number of images different sizes, ranging 16x16 512x512.
i want append black label each of these images saying "demo version".
since images comes in different sizes, want label size relative image. don't want create image wider.
please help.
this php version utilize - not platform etc. using. add together lable below image think want - can watermark instead if want sec example.
exec("montage -geometry +0+0 -background skyblue -label \"sunflower\" original.jpg output.jpg"); watermark embossed type text
// size of image $size = getimagesize("$input14"); // size watermark - scaled fit image $width = $size[0]*.9; $height = $size[0]*.25; // create image text $cmd = "-size {$width}x{$height} -background none -font utopia-bold ". " -fill white -gravity center caption:\"copyright of rubblewebs\" ". " -shade 240x40"; exec("convert $cmd font.png "); // add together text image photo exec("composite -watermark 30% -gravity south font.png $input14 embossed.png"); // delete tempory image unlink ('font.png'); image-processing imagemagick image-manipulation
No comments:
Post a Comment