How does AnQiCMS handle the conversion of uploaded image webp format, large image compression, and thumbnail generation to optimize display performance?

Calendar 👁️ 72

In this era of pursuing speed and visual experience, the loading efficiency of website images is directly related to user retention and search engine rankings.We all hope that the images on the website can be displayed in high definition and quickly presented to the user.AnQiCMS provides us with a very practical solution in image processing, through functions such as WebP format conversion, intelligent large image compression, and diverse thumbnail generation, which helps us easily optimize website images and make the website run more smoothly.

WebP format conversion: the balance between lightweight and high-definition

WebP is a modern image format developed by Google, known for its excellent compression rate and high quality.Compared to traditional JPG, PNG formats, WebP images can maintain similar, if not better, visual quality while typically reducing file size significantly.This means that the website loads faster, users can see the content faster, and it can also save bandwidth and storage space for the server.

AnQiCMS took full advantage of this advantage of WebP.In the background "Content Settings" we just need to simply check the "Whether to enable Webp image format" option, and the system will automatically convert new JPG, PNG, etc. images to WebP format when we upload them.The entire process does not require any additional operation, upload and it is optimized.This undoubtedly greatly enhances efficiency for daily content publishing work.It is also worth mentioning that if our website has accumulated a large number of non-WebP images before enabling this feature, AnQiCMS also provides a convenient "WebP conversion tool" that can batch convert the uploaded images to WebP format, achieving a modern upgrade of the website's image assets and making the website's image assets焕发新的活力.

Intelligent large image compression: goodbye to bulkiness, improve loading speed

In addition to image formats, the original size of images is also an important factor affecting website performance.At many times, the high-definition original images we upload do not need such high resolution on the web page, and large files can slow down the loading speed.AnQiCMS performs very intelligently in this aspect, built-in with the function of 'whether to automatically compress large images'.

After enabling this feature, the system will intelligently judge the size of the uploaded images.If the width of the image exceeds the threshold we have set, it will automatically compress the image, significantly reducing the file size without significantly reducing the visual quality of the image.By selecting the "Auto-compress to specified width" option, we can flexibly customize the maximum width of images according to the website design requirements, for example, setting it to 800 pixels.This way, all images with a width greater than 800 pixels will be compressed to this width, ensuring the display effect of the images on the web page while avoiding unnecessary resource waste and loading burden.This feature effectively balances image quality and loading speed, greatly benefiting user experience.

Diversified thumbnail generation: accurately adapts to various display needs

Thumbnails play a "front door" role in the display of website content, they are important elements that attract users to click on article lists, product catalogs, news bulletins, and more.AnQiCMS provides high flexibility and automation in thumbnail generation to meet the display needs of different areas of the website.

When we upload images for articles, products, or pages, AnQiCMS can not only intelligently extract the first image from the content as a thumbnail but also provides three refined thumbnail processing methods for us to choose from according to specific design requirements:

  1. Scale proportionally to the longest side:This method ensures that the image content is complete and intact without any cropping.The system will resize the image according to the thumbnail size we set, maintaining the original aspect ratio of the image, so that the longest side fits the target size, and the other side adjusts proportionally, commonly used in scenarios where the full theme of the image needs to be displayed.
  2. Pad to the longest edge:If the website needs a strictly unified thumbnail size but does not want to crop the image content, this method is very suitable.The image will be displayed completely within the set size box and centered, with any insufficient areas filled with white or transparent background to ensure the visual consistency of all thumbnails.
  3. Trim to the shortest edge:This approach is very effective for highlighting the main subject of the image in the center.The system will crop around the center of the picture, ensuring the shortest side is complete and the longest side is cropped proportionally.Although some edge information may be lost, it can effectively focus the user's attention on the core content of the image.

We can freely configure the "thumbnail size" in the "Content Settings" according to the requirements of the website template, for example, set it to 300x200 pixels.If the style or layout of the website changes in the future, the size of the thumbnails needs to be adjusted. AnQiCMS also provides a very practical 'batch regenerate thumbnails' function, which can update the thumbnails of the entire site with one click, saving a lot of trouble from manual processing.

Central configuration, easy management

AnQiCMS has concentrated all these powerful image optimization features in the background "Content Settings" module, making management and configuration extremely simple and intuitive.Whether it is to enable WebP conversion, adjust large image compression parameters, or select thumbnail processing methods and sizes, all can be completed on the same interface.This one-stop management model has greatly reduced the technical threshold and operational complexity of our website image optimization.

By these image optimization capabilities of AnQiCMS, we can ensure that the website images not only have excellent visual effects but also possess the ultimate loading speed and optimized file size, thereby significantly improving the overall performance, user experience, and search engine friendliness of the website.


Frequently Asked Questions (FAQ)

Ask: After enabling WebP conversion, will the original JPG/PNG images be immediately converted to WebP?Answer: After you enable the WebP option, new uploaded images will be automatically converted to WebP format.For images in JPG or PNG format already on the website, the system will not automatically convert them.You need to find and use the "WebP Conversion Tool" on the "Content Settings" page, and manually click to perform batch conversion.

Ask: Does the set 'thumbnail size' apply to all images or only to certain types of images?Answer: The "thumbnail size" and "thumbnail processing method" are global, and they apply to all images that need to be displayed as thumbnails on the front-end page.For example, cover images for article lists, product lists, etc. will be generated and displayed according to your settings.

Ask: If I turn on the automatic compression of large images, but I want to keep the original size of some specific images, does AnQiCMS support this?Answer: The large image automatic compression feature of AnQiCMS is currently global. If you want certain specific images to retain their original size and not be compressed, you may need to manually adjust the size of these images locally before uploading, ensuring that their width is below the threshold of "Automatic compression to the specified width" that you set, or temporarily turn it off.

Related articles

How to overview the key operational data display of the AnQiCMS backend homepage (such as document quantity, visit trend, inclusion situation)?

The AnQi CMS backend homepage: A smart overview of website operations In the ever-changing internet environment, an efficient and intuitive website operation backend is undoubtedly the key to controlling the overall situation for operators.AnQiCMS (AnQiCMS) fully understands this, and the design philosophy of its backend homepage is to present the core operational data of the website in a clear and easy-to-understand way in front of you, so that you can have a clear understanding of the health status and operational performance of the website at the first time.

2025-11-08

How to enable and display the captcha function correctly in the website's comment and message form?

When running a website, spam comments and malicious messages often cause headaches.They not only affect user experience, but may also consume server resources, and even reduce the professional image of the website. 幸运的是,AnQi CMS内置了验证码功能,可以帮助我们有效过滤这些不速之客,让网站环境更加清朗。Below, we will learn together how to enable and display the captcha function correctly in the website's comment and message form. ### Step 1: Enable captcha feature in the background First, we need to go to the management interface of the website background.Find 'Function Management' in the left navigation bar

2025-11-08

How to display友情链接 in front-end and add nofollow attribute according to needs?

Manage and display friend links in Anqi CMS, which not only helps to enrich the external connections of the website, but also is a delicate operation that needs to be fine-tuned during SEO optimization.It is particularly important to flexibly control the `nofollow` attribute according to requirements, which is crucial for maintaining the health of website links and the transmission of weight.Our Aiqi CMS provides intuitive and powerful features, allowing us to easily achieve these goals.--- ### Configure friend links in AnQi CMS backend Firstly, all the friend links displayed on the front end cannot be separated from the detailed configuration in the backend

2025-11-08

How does AnQiCMS automatically generate Sitemap and configure Robots.txt to optimize search engines' crawling and display of website content?

Search engine optimization (SEO) is the cornerstone of any website's success, and Sitemap and Robots.txt files are the key tools we use to communicate with search engines.They are like the 'instruction manual' and 'traffic rules' of a website, helping search engines efficiently and accurately crawl and display our content. 幸运的是,AnQiCMS was well thought out from the beginning of its design, built-in powerful SEO tools, making these seemingly complex operations extremely simple. Next

2025-11-08

How to set and accurately display the TDK (Title, Description, Keywords) on the homepage of AnQiCMS?

The homepage, just like the digital facade of your company or brand.It is not only the first impression of your visitors, but also the key to search engines evaluating the core value of your website.The TDK - Title, Description, and Keywords on the homepage play a crucial role in Search Engine Optimization (SEO).A well-set homepage TDK can effectively improve the ranking of the website in search results, attract more target users to click, and bring considerable traffic and conversion.

2025-11-08

How to use the `include` tag in AnQiCMS templates, efficiently reuse and display common page header, footer and other modules?

When building a website, we often encounter such a scenario: the website header (Header), footer (Footer), sidebar (Sidebar), and navigation menu modules, almost appear on every page.These modules are not only similar in content, but also their structure and style need to be maintained consistently.If you write the same code for each page, it is not only inefficient, but also a maintenance nightmare if you need to make any changes, as you would have to adjust all pages one by one.Luckyly, AnQiCMS (AnQiCMS) understands the importance of template reuse

2025-11-08

How to use the `macro` macro function in AnQiCMS templates to define reusable content display segments to improve efficiency?

In AnQi CMS, efficiently managing website content and front-end display is the key to daily operations.When faced with some repetitive page elements, such as article list items, product cards, or buttons with specific styles, if you rewrite the code every time, it not only takes time and effort, but is also prone to errors, and future modifications and maintenance will become extremely complex.

2025-11-08

How to implement the template inheritance function of AnQiCMS, so that the content block display of master page and sub page can be overlaid and customized?

How template inheritance in AnQiCMS allows the parent page and child page to perform their respective functions?In website content management, maintaining consistent page style while being able to flexibly modify local content is a goal pursued by many operators.AnQiCMS uses a syntax similar to the Django template engine, providing us with an elegant solution, that is, the powerful template inheritance feature.With this feature, we can cleverly design master pages and subpages, making the website structure both unified and highly customizable.

2025-11-08