Search found 5 matches
- 2017-12-05T22:02:11-07:00
- Forum: Users
- Topic: Watermarking with Text.
- Replies: 8
- Views: 12118
Re: Watermarking with Text.
Completed in my case; $cmd = " -size 140x80 xc:none -font /var/www/html/static/fonts/OpenSans-Bold.ttf -fill rgba\(0,0,0,0.4\) -gravity NorthWest ". " -draw \"text 10,10 \"$text_submitted\" \" -gravity SouthEast ". " -draw \"text 5,15 \"$text_submitted\" \" miff:- | composite ". " -tile - $original ...
- 2017-12-05T21:45:51-07:00
- Forum: Users
- Topic: Watermarking with Text.
- Replies: 8
- Views: 12118
Re: Watermarking with Text.
$cmd = " -size 140x80 xc:none -fill grey -gravity NorthWest ". " -draw \"text 10,10 \"Copyright\" \" -gravity SouthEast ". " -draw \"text 5,15 \"Copyright\" \" miff:- | composite ". " -tile - $original_image "; exec("convert $cmd $new_image", $array); https://i.imgur.com/3Io4hIK.png Just the ...
- 2017-12-05T20:59:39-07:00
- Forum: Users
- Topic: Watermarking with Text.
- Replies: 8
- Views: 12118
Re: Watermarking with Text.
So, it successfully writes text, as we see on the circular image. Correct? The colourful rectangular image seems to have no text. Im sorry fella, I am explaining this retarded. Let me clear it up, so the command I have posted above in the quotes successfully produces this image; https://i.imgur.com ...
- 2017-12-05T20:44:07-07:00
- Forum: Users
- Topic: Watermarking with Text.
- Replies: 8
- Views: 12118
Re: Watermarking with Text.
What command do you actually run? $cmd = "$original_image -pointsize 50 -font /var/www/html/static/fonts/arial.ttf -fill rgba\(0,0,0,0.4\) ". " -gravity center -annotate +0+0 \"$text_submitted\" "; $original_image is an unwatermarked image file submitted from a form. $text_submitted is the text ...
- 2017-12-05T20:29:15-07:00
- Forum: Users
- Topic: Watermarking with Text.
- Replies: 8
- Views: 12118
Watermarking with Text.
I have run into a little issue, where I have had absolutely no luck in trying to implement some of the public examples on the ImageMagick website mainly due to not knowing how to format the command within PHP. I took a piece of open source code and tweaked it to fit my needs, the final part is ...