How to batch regenerate thumbnails after updating the website style or size? Let the content display shine anew
With the continuous evolution of website design, or to adapt to different device displays, we often encounter situations where we need to adjust the thumbnail size and style of images.It is possible that the website has changed to a completely new template, the new template has specific requirements for the aspect ratio or display area of the images;Or perhaps it is to optimize the user experience on mobile devices, hoping to display thumbnails of different sizes on different devices.In any case, manually processing hundreds or even thousands of thumbnails on a website one by one is not only time-consuming and labor-intensive, but also prone to errors.
AnQi CMS knows the pain points of content operators in image management, therefore it provides a convenient and efficient feature that can help you easily cope with such challenges.Below, we will give a detailed introduction on how to batch regenerate thumbnails in Anqi CMS, so that your website content always maintains a **status.**
Understand the thumbnail settings: preparation before batch operations
The most critical step before executing batch thumbnail regeneration isClarify the style and size you want the new thumbnails to display. Because batch operations are based on the current system settings, it is crucial to configure these parameters in advance.
First, you need to log in to the website backend, find the "System Settings" in the left navigation bar, and then click "Content Settings." This is the core area where you manage the website's image processing methods, including several options closely related to thumbnails:
Thumbnail Processing Method:
- Scale proportionally to the longest sideThis method maintains the original aspect ratio of the image, adjusts the image to the specified size range without cropping.For example, if you set the size to 200x200, the original image is 400x800, and it may become 100x200 after scaling.
- Trim according to the shortest edgeThis method ensures that the image completely fills the size you set, and may center crop the original image.For example, if you set the size to 200x200, the original image is 400x800, the cropped image will be a centered 200x200 image with the sides cut off.
- Fill the longest sideThis method also maintains the original image ratio, but white will fill the areas where the image is smaller than the specified size.For example, if you set the size to 200x200, the original image is 400x200, the zoomed image might become 200x100, with 50 pixels of padding added to the top and bottom.
Choose the most appropriate processing method based on your template layout and design requirements, as this will determine the thumbnail visual effect.
Thumbnail sizeThis is the place where you specifically set the thumbnail width and height.For example, you can set it to '200x200' pixels.Please set the display size of the thumbnails according to the template of your website, an appropriate size can ensure clarity as well as兼顾 page loading speed.
Default thumbnail: Although it does not directly participate in batch generation, setting a default thumbnail is a good habit.When certain content does not upload a dedicated thumbnail, the system will automatically use this default image for display, to avoid blank or incorrect display.
After you have carefully adjusted the parameters of 'thumbnail processing method' and 'thumbnail size', please be sure to click the 'Save' button at the bottom of the page to ensure that your new settings have taken effect.
Batch regenerate thumbnails: Refresh website images with one click
Once all the settings related to thumbnails have been adjusted and saved, the next step is to batch regenerate thumbnails.
At the bottom of the "Content Settings" page, you will find a button named“Batch regenerate thumbnails”.
Click this button and Anqí CMS will start background processing tasks, traversing all the uploaded images on your website and automatically generating new thumbnail files according to your current settings for 'thumbnail processing method' and 'thumbnail size'.This process usually runs in the background and does not affect the normal access to the website, users can still browse your content normally.
Important reminder:
- Data Overwrite:The batch regeneration operation will overwrite the old thumbnail files according to the new settings.Therefore, it is strongly recommended that you back up the website data and image files before performing this operation, in case of any unforeseen events.Although Anqi CMS strives for stability and security in design, good backup habits always provide additional protection.
- Processing Time:The time for batch generation depends on the total number of images on your website and the server performance.The more images there are, the longer the generation time may be. Please be patient and avoid frequently refreshing the page or repeating clicks during the generation process.
Inspection and Optimization After Operation
After bulk re-generation of thumbnails, your website content will have thumbnails that are uniform and comply with the new design standards, greatly enhancing visual consistency and professionalism. At this point, it is recommended that you:
- Random Inspection:Visit the front page of your website, randomly inspect several articles, products, or category pages, check if the newly generated thumbnails meet expectations and if the display effects are good.
- Clear browser cache:Sometimes, due to browser caching, you may not see the latest thumbnails immediately.Please try clearing your browser cache or access in incognito mode to ensure that the latest images are loaded.
- Focus on page loading speed:If you adjust the thumbnail size to be smaller or optimized, theoretically it should slightly improve the page loading speed. Continuously monitor website performance data to ensure the optimization effect.
Through this convenient feature provided by Anqi CMS, you can easily manage and update the thumbnail images of your website, ensuring that your content presents itself in an optimal way in any display scenario, providing an excellent browsing experience to users.
Frequently Asked Questions (FAQ)
1. Will regenerating thumbnails affect the original image I uploaded?I will not. Batch regenerate thumbnails will only create or update thumbnail files used by the website based on the parameters you set, the original image files you initially uploaded will be retained in full, and will not be affected in any way.
2. How long will it take to regenerate thumbnails in bulk? Can the website be accessed normally during the operation?The time required depends on the number of images on your website and the performance of the server.The more images, the lower the server configuration, the longer the time it takes. During the generation process, Anqi CMS will process it in the background, and your website can be accessed normally without interrupting the user's browsing experience.
Do I need to manually delete the thumbnail files of the old size after regeneration?The AnQi CMS will usually overwrite or replace the old thumbnail file when regenerating thumbnails to ensure that the image versions in the file system are the latest.However, as a good operational habit, after you confirm that the new thumbnail effect is correct, you can regularly check the image storage directory, clean up any redundant old files that may exist, and free up storage space.