PHP5 text image watermark and thumbnail

Source: Internet
Author: User
Tags watermark images
I. watermark creation 1. the watermark text is mainly implemented by the imagettftext () function provided by the GD Library in PHP. The process is: load the image, adjust the color of the watermark text, and add the Watermark & amp; lt ;? Php?imgdesert.jpg; specifies the image path. Here we use a desert image that comes with Windows 7 as an example $ img_infogetim...

I. watermark creation

1. watermark text

The image watermark text in PHP is mainly implemented through the imagettftext () function provided by the GD Library.

The process is: load the image =, adjust the color of the watermark text =, and add the watermark

 

2. watermark image

The imagecopy () function is used to watermark images in PHP.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.