NEWS
Website design, page creation, website production, website design and other related information

A solution for uploading format Webp images in the PBootCMS program of an independent website

Date:2024-11-18 Visit:2429 Author:Caizhi

When the client independently built their website last year, they used the PBootCMS program. However, due to the departure of the website building personnel from the other company, there is currently no one available to handle it. They contacted the Caizhi website maintenance technology center to help solve the problem of WebP image upload. So, what kind of configuration did our program personnel mainly do, and how did they help the client solve the problem?

1. Modify configuration file:

Open the/config/config.php file in the PBootCMS installation directory. Find the upload configuration section and add webp format.

Website program modificationconfig

2. Update UEditor configuration:

Open the/core/extend/ueditor/php/config.json file.

Insert '. webp' in the seventh line to allow UEditor to process WebP images.

Website program modification webp image issue

3. Modifying JavaScript files, thumbnail issue:

Open the/apps/admin/view/default/layui/layui.all.js file.

Search for jpg and add webp | to it to ensure that the thumbnail can use WebP format.

Website program modification and uploading WebP format

After completing the above steps in the production of Caizhi website, PBootCMS has passed the test and can support the upload of WebP format images. If you encounter problems during the upload process, you may need to check if the server environment supports WebP format or if there are any other configurations that need to be updated. If your website also encounters similar problems, you can further contact Caizhi.