Modify Dede text watermark color

Source: Internet
Author: User

Many people say dedecms can not use the text watermark, this is to set, all the watermark options set, but also to find your font, and copy to the Data\mark\ directory, first talk about the general steps, using Photoshop or other software, choose your favorite font, remember the name of the font , such as Papyrus.ttf, and then go to C:\WINDOWS\Fonts to find this file and copy it to the Dedecms Data\mark\ directory, and then open \include\ image.func.php, modify the Simhei.ttf for Papyrus.ttf, and then test

Dedecms Font watermark Color

Some friends will find Dedecms font watermark color Regardless of how the change is black or white, here to pay attention to two points:

1. Modify include\image.func.php Code

$cfg _watermarktext[' color '] = ' 255,0,0′;

For

$cfg _watermarktext[' color '] = $photo _fontcolor;

2, Dedecms background color code to fill in decimal rather than hexadecimal; for example, enter 189,211,228

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.