In the process of using AnQiCMS to manage website content, the management and optimization of image resources are essential for improving website user experience and SEO performance.A well-organized image library not only makes daily operations more efficient, but also ensures that website content is presented in **status across different devices and network environments.
Classify image resources: Say goodbye to chaos and have everything in order
AnQi CMS provides us with an intuitive image resource management interface, making a large number of images no longer a difficult problem of piling up.To start organizing, we just need to go into the backend, click on the left navigation bar's 'Page Resources', and then select 'Image Resource Management'.
Here, you will see all the uploaded images and video files.If your website has been running for a long time or if you have uploaded a large number of images, you may find that the image list is somewhat disorganized.At this moment, the "category management" function on the left comes into play.We can create different categories based on content type (such as product images, article illustrations, Banner images, team photos), project name, or even upload time.For example, create a category for 'Latest Products' and a category for 'Blog Article Images', so that you can quickly locate specific images when needed.
After creating a category, we can classify the uploaded images.AnQiCMS supports batch operations, you can easily select multiple images and then transfer them in bulk to the preset categories.This not only makes the background image list organized, convenient for us to quickly find and reuse materials, but also lays a solid foundation for the front-end content display.Imagine, when designers or content editors need images, they no longer have to sift through a vast sea of images, but can directly enter the corresponding categories, greatly improving work efficiency.
Optimization of front-end display of image resources: balancing speed and aesthetics
It is not enough to just categorize images, how to make these images both beautiful and fast to load on the website front-end is a key aspect we need to focus on.AnQiCMS offers a variety of practical features for image optimization, helping us achieve this goal.
Firstly, under the "Background Settings" and "Content Settings", we can find a series of global image processing options:
- WebP image format conversion:“Whether to enable the WebP image format” is an important option.WebP is a modern image format that can significantly reduce the file size of images without compromising visual quality, thus speeding up the loading of websites.Once this feature is enabled, all uploaded JPG, PNG images will be automatically converted to WebP format.If you want to convert the old images uploaded as well to WebP, the system also provides a batch conversion tool, which is very convenient.
- Large image automatically compressed:The "Auto-compress large images" feature is also practical, especially when uploading high-resolution images.After turning on, the system will automatically compress the image to the preset "auto-compress to a specified width", such as the default 800 pixels.This can ensure that the image is displayed clearly while effectively saving server storage space and bandwidth.
- Thumbnail processing method and size:AnQiCMS provides three thumbnail generation methods: 'Scale proportionally by the longest side', 'Fill by the longest side', and 'Crop by the shortest side'.We can flexibly choose the appropriate processing method according to the requirements of the website front-end design and set a unified 'thumbnail size'.For a uniform square thumbnail, you can choose 'Crop by shortest side'; if you want the image to be displayed fully and centered, you can choose 'Fill by longest side'.Moreover, the setting for the 'default thumbnail' provides a unified placeholder when no image is uploaded, maintaining the beauty of the page.
- Batch regenerate thumbnails:If we modify the thumbnail size or processing method, we can use the "Batch Regenerate Thumbnails" feature to update all image thumbnails with one click, saving a lot of manual operation trouble.
In addition to the global settings, AnQiCMS also provides support for image optimization at the content editing and template call level:
- Details in content editing:When editing a document or page, the option to 'download remote images' can download external link images to the local server, which is beneficial for SEO and website stability.AnQiCMS also supports automatically extracting the first image in the content as a thumbnail, which greatly saves our operation time.At the same time, to protect original content, the built-in 'Anti-Crawling and Watermark Management' feature can automatically add watermarks to images, effectively preventing misuse.
- Flexible invocation of front-end templates:How the image finally appears on the front end of the website depends on the template call method.In AnQiCMS template tags, we can call different sizes and types of images according to actual use.
archive.LogoIt is usually used to call the cover image of an article, whilearchive.Thumbit is used to call the processed thumbnail. For product display or Banner carousel,ImagesThe field can conveniently call multiple group images. Even if we set a uniform thumbnail size in the background, the front-end template can also pass throughthumbThe filter, without changing the original image, generates and calls different thumbnail sizes according to specific display requirements, greatly enhancing the flexibility of front-end display.By coordinating with the front-end image lazy loading technology, it can further optimize page loading speed and improve user experience.
By using these image classification and display optimization features provided by Anqi CMS, we can effectively enhance the performance, visual effects, and content management efficiency of the website.A smooth-running, beautiful website will undoubtedly attract and retain visitors, helping us achieve our operational goals.
Frequently Asked Questions (FAQ)
1. Will the front-end image update immediately if I change the global settings of the image on the backend (such as WebP or compression size)?The update of the front desk image usually takes a little time.For images cached by the browser, it may be necessary for users to manually clear the browser cache to see the latest effects.For thumbnails generated on the server or WebP conversions, you can use the 'Batch regenerate thumbnails' feature on the 'Content Settings' page to force the system to process all old images.
How to call the Banner image under a specific category on the front-end template instead of the thumbnail in the article?In AnQiCMS, the category itself can be set to have a Banner image and thumbnail. In the template, you can usecategoryDetailtags to get the detailed information of a specified category, and then through itsImagesField (used for Banner group image) orLogo/ThumbField (used for a single image) to call. For example,{% categoryDetail categoryImages with name="Images" %}can retrieve a Banner group image of a certain category.
3. Does AnQiCMS support image CDN? How should I configure it if I want to use CDN to accelerate image loading?AnQiCMS itself mainly manages the local storage and processing of image resources.If you wish to use CDN to accelerate image loading, you usually do not need to make complex configurations within AnQiCMS.You can add your website domain to the CDN acceleration service in the CDN service provider's console and configure the backsource address to point to your AnQiCMS server.This, when the user accesses the image, the CDN will automatically fetch the image from your server and distribute it, thereby achieving acceleration.The image paths generated by AnQi CMS are relative paths or complete URLs and are compatible with CDN services.