When using the Safe CMS to manage website content, we may encounter situations where we need to adjust the thumbnail display effect.This might be because the website has undergone a visual redesign, changed to a new template, or simply aims to optimize the display of images on different devices.When we change the thumbnail size, cropping method, and other settings, the existing content on the website will not automatically apply these new settings. In this case, it is necessary to manually trigger a batch regeneration to ensure the uniformity and aesthetics of the thumbnails throughout the site.
Understanding the thumbnail mechanism of Anqi CMS
AutoCMS provides a flexible mechanism for handling thumbnails.usually, when you publish or edit content (such as articles, products, or single pages), the system will automatically handle its associated images.If you do not upload a thumbnail manually, Safe CMS will try to extract the first image from the content as a thumbnail.Of course, you can also specify an image as a thumbnail for the content, or set a global default thumbnail to be used when no image is specified for the content.
The generation of these thumbnails will follow the 'thumbnail processing method' and 'thumbnail size' you set in the background.This means that whenever you upload an image or the system automatically extracts an image, a corresponding thumbnail file will be generated based on the rules in effect at that time.
Why do we need to regenerate thumbnails in bulk?
There are several common scenarios that prompt us to perform thumbnail regeneration in bulk:
- Adjusting thumbnail size:You may find that the current thumbnail is too large or too small on some pages or devices, so the width and height of the thumbnail have been modified in the 'Content Settings'.
- Thumbnail processing method changed:Security CMS provides various thumbnail processing methods, such as 'Scale to fit the longest side', 'Fill the longest side', or 'Crop to the shortest side'.If the website design changes the image display ratio or cropping method, it is necessary to update the thumbnails of all old content.
- Default thumbnail updateWhen you have uploaded a new 'Default thumbnail' and wish to apply this new default image to all content that has not specified a thumbnail.
- Template update requirements:After replacing the new website template, the new template may have different requirements for the size and ratio of thumbnails. In order to maintain consistency with the new design style, it is necessary to regenerate them in bulk.
No matter which situation, the batch regeneration feature can help us efficiently keep all published content thumbnails consistent, enhancing the overall visual effects and user experience of the website.
Steps for batch re-generating thumbnails
This process is actually very direct and simple in AnQi CMS, and the system provides a dedicated function for it:
- Log in to the admin panel:Firstly, you need to log in to the backend management interface of Anqi CMS.
- Go to content settings:Find and click 'Backend Settings' in the left menu bar, then select 'Content Settings.'
- 定位功能In the "Content Settings" page, scroll down and you will see an option named "Batch regenerate thumbnails".
- 执行操作English: Usually, there will be an execute button next to this option.Before you click it, please make sure you have adjusted the 'thumbnail processing method' and 'thumbnail size' to the desired values on the same page.
- Be patientClick the button, and the system will regenerate thumbnails of all content on the website based on the latest parameters you have set.This process may take some time, the specific duration depends on the amount of content on your website and the server performance, please be patient and wait for the system to complete the operation.
注意事项在操作前
Before performing any batch operations, it is crucial to develop good habits:
- Data backup:We strongly recommend that you make a full backup of the website data and files before performing a batch regeneration of thumbnails.Although this operation is usually safe, it is better to be prepared for unforeseen circumstances.
- Confirm settings:Before clicking the 'Batch regenerate' button, please make sure that 'Thumbnail processing method' (such as scaling proportionally by the longest edge, filling with blank by the longest edge, or cropping by the shortest edge) and 'Thumbnail size' have been adjusted to the desired values.Once the regeneration is complete, the old thumbnail file will be replaced by the new one, and it cannot be restored to the previous state directly.
Through these steps and precautions, you can easily regenerate thumbnails in the Anqi CMS in batches, ensuring that the website content is always presented in**status**.
Common Questions and Answers (FAQ)
- 问:批量重新生成缩略图后,为什么网站前台的图片没有立即更新?答:This is usually due to browser caching or CDN caching.You can try clearing your browser cache (Ctrl+F5 or Cmd+Shift+R for a forced refresh) or log in to your CDN service provider's backend to clear the CDN cache.If server-side caching is used, it may also require synchronized cleanup.
- 问:我能否只重新生成特定分类或文章的缩略图,而不是全站?答:The 'Batch Regenerate Thumbnails' feature of Anqi CMS is designed as an operation covering the entire site.If you only need to adjust local content, it is recommended to directly enter the editing interface of the corresponding article, product, or page, and manually upload or adjust its thumbnail.
- 问:What is the impact of setting the thumbnail size too large or too small?答:Setting the thumbnail size too large will cause the image file size to increase, which in turn will slow down the page loading speed, affecting user experience and the SEO performance of the website.If set too small, it may cause the image to appear blurry or distorted on high-definition screens, affecting the visual effect.Suggest selecting a size that ensures clarity while controlling file size, based on your website design and target audience.