Home  >  Article  >  CMS Tutorial  >  What should I do if phpcms does not support thumbnails and watermarks?

What should I do if phpcms does not support thumbnails and watermarks?

angryTom
angryTomOriginal
2020-02-19 10:12:272532browse

What should I do if phpcms does not support thumbnails and watermarks?

What should I do if phpcms does not support thumbnails and watermarks?

PHPCMS does not support thumbnails and watermarks when installed by default

After asking the experts, it turned out to be this way:

Put the installation directory file: Apache2\bin\php.ini in "extension=php_gd2.dll" This part Just remove the ";" in front of it!

(Related recommendations: phpcms tutorial)

Specific method to add watermark function:

1. First check the server parameters Check whether this option of

Graphics Processing GD Library is supported.

You can see this when you first enter the background management.

It is the one set above. If it is not supported, you can restart the web server.

2. System Settings---Basic Configuration---Graphics Processing

Select text watermark or picture watermark for watermark type

When the selected type is text watermark, you need to fill in The text of the watermark is

and be sure to copy the text font file to the class/fonts/ folder.

The default class/fonts/simhei.ttf is the font file.

You can find the font you want in the font library under the Windows operating system.

Chinese fonts must use Chinese font files.

When set as image watermark, you need to upload the image for the image watermark. The watermark image needs to be a static gif image or jpg. Animated images are not allowed.

For more introductory tutorials on website construction, please continue to pay attention to PHP Chinese website!         

The above is the detailed content of What should I do if phpcms does not support thumbnails and watermarks?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn