Solution to Dedecms png/gif/jpg upload image watermark Failure method

Source: Internet
Author: User
Keywords Png dedecms jpg upload image watermark

When we set a good dedecms image watermark function, in the actual use of the process found that sometimes upload pictures but no watermark, check http://www.aliyun.com/zixun/aggregation/8984.html "> site Management Backstage- > System Setup--> image watermark Settings

Watermark feature is set to open, but using the atlas to upload png/gif/jpg and other pictures without any watermark effect.

To find out why, let's check the component to control the upload image.

Open the/dede/swfupload.php file and locate the code approximately 108 lines:

Waterimg ($cfg _basedir. $fileurl, ' up ');

$title = $filename. $sname;

There is a bug in the save original that is modified to:

Waterimg ($cfg _basedir. $fileurl, ' up ');

$title = $filename. $sname;

Enable annotation out of this line on it, test upload Atlas effect is normal! The watermark function has been restored to normal use.

Related Article

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.