how to remove white border

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
nuthell

how to remove white border

Post by nuthell »

hello,everyone.
I am new with ImageMagic. Recently, I have been using it in my project to add water mark. it works fine, except there is 2px white border on the left of the text_bw.png (see the picture below), how to remove the white border?

there are my commond lines.

convert -size 50x39 xc:transparent -font /usr/share/fonts/TrueType/simsun.ttf -pointsize 20 -gravity east -fill black -draw " text 0,0 'Anthony' " text_mask.png

convert xc:transparent -border 0 -gravity West /var/www/baby/img/watermark/logo2.png text_mask.png +append -trim text_bw.png //i think the problem occured here

/usr/bin/composite -dissolve 90% -gravity north text_bw.png test.jpg kkk.gif

Image
nuthell

Re: how to remove white border

Post by nuthell »

please. Help Me.
nuthell

Re: how to remove white border

Post by nuthell »

I have finished the problem.

thanks all.
Post Reply