How to set up automatic image compression in Anqi CMS to speed up page loading?

Calendar 👁️ 59

Optimize images, accelerate website: AnqiCMS Automatic Image Compression Settings Guide

Website loading speed is one of the key factors in user experience, as well as an important consideration for search engine optimization (SEO).And large images are often the main culprit for slowing down website loading speed.Fortunately, AnqiCMS, as a fully functional content management system, built-in a series of powerful image optimization features, helping us easily deal with this problem, while keeping the website smooth in providing rich visual content.

Today, let's take a detailed look at how to set up automatic image compression and other image optimization options in AnqiCMS to speed up page loading.

One, enable automatic compression of large images, intelligently manage image size

Preventing large images from being directly uploaded to the website, which occupies too many server resources and slows down page loading speed, is the first step in image optimization.AnqiCMS provides a very practical feature——auto-compression of large images.

This feature is located in the 'Content Settings' on the backend. First, log in to your AnqiCMS backend management interface, find 'Backend Settings' in the left menu bar, click 'Content Settings'.In the content settings page, you will see an option named 'Whether to automatically compress large images'.

Select this option and AnqiCMS will intelligently detect the image size when uploading images.If the size of the image uploaded is too large, the system will automatically compress it, thereby effectively reducing the file size of the image, reducing the server's transmission pressure and the user's bandwidth consumption, and significantly improving the page loading speed.By default, the system will compress the detected large image width to 800 pixels.

Of course, this default value is not unchangeable. Below, there is a 'Auto-compress to specified width' input box, where you can flexibly adjust this value according to the actual design needs and content area width of the website.For example, if the maximum width of the content area on your website is 1200 pixels, setting this value to 1200 will ensure that the uploaded images are both clear and perfectly adaptable to the layout, while avoiding unnecessary large sizes.In this way, even users who are not familiar with image processing can ensure that the uploaded images will not become a burden on the website.

Two, start WebP image format, improve loading efficiency

Other than directly compressing the image size, using a more efficient image format is also an effective means to improve the website loading speed.WebP is a modern image format developed by Google. Compared to traditional formats such as JPEG, PNG, and others, it provides smaller file sizes at the same quality, thereby further speeding up image loading and saving storage space.

In the same 'Content Settings' page, you will also see an option for 'Whether to enable WebP image format'.After enabling this feature, all new uploaded JPG, PNG, and other image formats will be automatically converted to WebP format in the background.It should be noted that this setting only takes effect for new images uploaded after it is turned on, and old images uploaded to the website will not be automatically converted to the new format.

If you want to convert all the historical images on the website to WebP format for comprehensive optimization, AnqiCMS also provides a convenient 'WebP conversion tool'.You can use this tool to batch convert existing images after enabling the WebP feature, to optimize the images on the entire site and further accelerate the website.

Three, optimize thumbnail processing, unify beauty and speed

Under many website scenarios, such as article lists, product display pages, or category pages, the original large image is not displayed directly, but a thumbnail is shown instead.Setting thumbnails reasonably not only ensures a unified and beautiful display of website images but also significantly speeds up page loading, as thumbnail file sizes are usually much smaller than the original images.

The 'Content Settings' feature, including 'Thumbnail Handling Method' and 'Thumbnail Size', is exactly for this purpose. You can choose one of the following three thumbnail handling methods according to your actual needs:

  • Scale proportionally to the longest sideThe image will maintain its original aspect ratio, scaling based on the longest side to ensure the image is fully displayed.
  • Fill the longest side: The image will fill the blank area while maintaining the aspect ratio to reach the set size, suitable for scenarios where a fixed-size picture frame is needed.
  • Trim according to the shortest edge: The image will be cropped based on the shortest edge to ensure the image fills the set size, but some content may be cut off.

After selecting the processing method, you can set a uniform width and height in the 'thumbnail size'.After you adjust the thumbnail size, you can also use the 'Batch Regenerate Thumbnails' feature to generate thumbnails for all uploaded images according to the new size and method, ensuring consistency and **performance** in the website display.

By combining these image optimization features of AnqiCMS, you can build a website that is both rich in content and fast to load, providing users with an excellent browsing experience and laying a solid foundation for the website's search engine performance.Remember, image optimization is a continuous process, regularly checking and adjusting settings will help your website maintain good performance.


Frequently Asked Questions (FAQ)

Q1: After enabling the WebP format, can old browsers still display images normally?A: The compatibility of WebP format is already very good, mainstream modern browsers (such as Chrome, Firefox, Edge, Safari, etc.) have already supported.For a very few old browsers that do not support WebP, AnqiCMS usually has a built-in fallback mechanism, or you may need to make some compatibility adjustments in the template, but most users will not encounter display issues.

Q2: After setting the automatic compression of the large image width, what should I do if I need to display the original size of the image?A: The automatic compression feature is mainly aimed at images uploaded to the content editor, with the purpose of optimizing page loading.If certain scenarios indeed require displaying the original size of images, you can choose not to enable this feature, or upload the original size of the images to another place (such as a dedicated image bed) and then introduce them through external links.However, for website performance, it is usually not recommended to directly display oversized, unoptimized original images on the page.

Q3: What are the differences between the three thumbnail processing methods, and how should I choose?A:

  1. Scale proportionally to the longest sideThe advantage is that the image content is the most complete, and it will not be cropped, but the final size may not be completely consistent. Suitable for lists that require high image integrity and do not need strictly uniform sizes.
  2. Fill the longest sideThe advantage is that it can strictly maintain the uniform size of thumbnails and ensure the completeness of the image content, but white edges may occur. It is suitable for scenarios that require fixed width and height display and do not mind white edges.
  3. Trim according to the shortest edgeThe advantages are that it can strictly maintain the uniform size of thumbnails, and the image can completely fill the area without any white edges, but it may cut off the edge content of the image.Suitable for scenes with high visual impact, where the image content is centered and the edge information is not important. Choose the method based on the design style of your website and your specific requirements for image display.

Related articles

Does AnQi CMS support the automatic conversion of uploaded images to WebP format for optimized display?

In the era where content is king, the loading speed of website images directly affects user experience and search engine optimization (SEO) performance.Efficient image management and optimization strategies are crucial for any website committed to providing high-quality content services.Many website operators are actively seeking solutions that can automatically optimize images, especially those converted to WebP format.So, for those who are using or considering using AnQiCMS, does this system support automatic conversion of images to WebP format after upload to optimize display?The answer is affirmative

2025-11-08

How to format a timestamp into a readable date and time format and display it in AnQi CMS?

In website content operations, the presentation of time is often ignored, but it is an important detail for improving user experience and content professionalism.The original timestamp number lacks meaning for ordinary users. Formatting it into a clear and easy-to-read date and time format makes the content more appealing.AnQi CMS knows this, providing a simple and powerful way to handle such needs.### Understanding the timestamp in AnQi CMS In AnQi CMS, whether it is the publication time (`CreatedTime`) or the update time (`UpdatedTime`)

2025-11-08

How to perform a loop (for) in Anqi CMS template to display list data?

When building a website page, we often need to display various list data, such as the latest articles, product categories, navigation menus, or comment details.The template system of AnQiCMS provides us with a powerful and flexible loop traversal function, making the display of dynamic lists very simple.The template syntax of AnQi CMS borrows from the Django template engine, so users familiar with this syntax will feel very close.It uses the `for` loop label to iterate over the data collection and display each item one by one.###

2025-11-08

How can conditional judgments (if/else) be used in the AnQi CMS template to control content display?

AnQiCMS template development skills: flexibly use conditional judgment (if/else) to control content display In website content operation, we often need to display or hide specific content blocks based on different conditions, or to differentiate the display based on different data states. AnQiCMS (AnQiCMS) powerful template engine provides us with flexible conditional judgment capabilities, through the clever use of `if/else` statements, you can easily achieve the fine-grained control of content, making your website more dynamic and user-friendly.

2025-11-08

How to configure content automatic external link filtering in Anqi CMS and how it affects the display of front-end links?

In website content operation, the management of external links is a vital aspect that cannot be ignored.It not only relates to user experience, but also directly affects the website's search engine optimization (SEO) performance.AnQi CMS knows this and therefore provides a flexible and practical external link handling mechanism to help content operators efficiently manage external links in articles.Where is the AnQi CMS external link configuration? AnQi CMS provides a very convenient function to handle external link issues, and you can easily configure it in the system background.The specific path is: log in to your AnQi CMS backend

2025-11-08

How to reference common code snippets (such as headers and footers) in Anqi CMS templates to unify page display?

It is crucial to maintain consistency in the display of web pages during website operations.A unified website appearance can not only enhance brand professionalism but also optimize user experience.AnqiCMS provides a powerful and flexible template mechanism, allowing us to efficiently manage common website elements such as headers and footers, thus avoiding repetitive code writing and ensuring the consistency of the entire site style.The AnqiCMS template system draws on the syntax of the Django template engine, with the core idea being that developers can define reusable code snippets and page skeletons

2025-11-08

How to display a custom prompt message during the website shutdown maintenance of AnQi CMS?

During the operation of the website, we sometimes have to temporarily close the website for maintenance in order to upgrade the system, optimize data, or adjust functions.How to clearly and friendly convey this status to visitors, avoiding confusion or loss of users, is particularly important.Safe CMS provides a set of built-in solutions that allow you to easily customize the prompt information for your website during maintenance shutdown. ### Understanding the shutdown mechanism of AnQi CMS The shutdown feature of AnQi CMS is designed to be very intuitive and flexible.When you enable the closed site mode, the system will automatically intercept all access requests to the website content

2025-11-08

How to display multi-language switch links and the current language identifier in Anqi CMS?

In AnQi CMS, implementing multi-language switch links and current language identification is a very practical feature that can help your website easily face global users and enhance the internationalization level of your website.Aqicms provides intuitive and powerful template tags, allowing you to flexibly display these elements on the website front end. ### One, understand the multilingual capabilities of Anqicms Anqicms has considered the needs of multilingual sites from the very beginning and provides comprehensive multilingual content management support.This means you can create and manage independent content for different languages in the background, such as articles

2025-11-08