When using AnQi CMS to manage website content, we sometimes encounter situations where we need to adjust the thumbnail display effect.This could be because the website has undergone a visual redesign, changed to a new template, or simply wanted to optimize the display of images on different devices.After changing the size, cropping method, and other settings of the thumbnail, 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 consistency and aesthetics of the thumbnails throughout the site.

Understanding the thumbnail mechanism of Anqi CMS

AnQi CMS provides a flexible mechanism for handling thumbnails.Generally, when you publish or edit content (such as articles, products, or single pages), the system will automatically handle the associated images.If you do not manually upload a thumbnail, AnQi CMS will try to extract the first image from the content as the 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.

These thumbnail generation will follow the "thumbnail processing method" and "thumbnail size" you set in the background.This means that whenever you upload a picture or the system extracts a picture automatically, a corresponding thumbnail file will be generated based on the rules in effect at that time.

Why is it necessary to regenerate thumbnails in bulk?

There are several common scenarios that prompt us to perform bulk thumbnail regeneration operations:

  1. Thumbnail size adjustment: You may find that the current thumbnail is too large or too small on some pages or devices, so you have modified the width and height of the thumbnail in the 'Content Settings'.
  2. Thumbnail processing method changed: Anqi CMS provides various thumbnail processing methods, such as "proportional scaling according to the longest side", "filling according to the longest side", or "cropping according to the shortest side".If the website design requirements change the image display ratio or cropping method, then all the thumbnail images of the old content need to be updated.
  3. Default Thumbnail UpdateWhen you upload a new 'default thumbnail' and want all content without specified thumbnails to apply this new default image.
  4. Template Update RequirementAfter replacing the website template with a new one, the new template may have different requirements for the size and aspect ratio of thumbnails. To maintain consistency with the new design style, it is necessary to regenerate them in bulk.

In any case, the batch regeneration feature can help us efficiently keep the thumbnails of all published content consistent, enhancing the overall visual effects and user experience of the website.

steps to batch regenerate thumbnails

This process is actually very direct and simple in Anqi CMS, and the system provides a special function for this:

  1. Log in to the backendFirstly, you need to log in to the Anqi CMS backend management interface.
  2. Go to content settings: Find and click "Background Settings" in the left menu bar, then select "Content Settings."
  3. Location featureIn the "Content Settings" page, scroll down and you will see an option named "Batch Regenerate Thumbnails".
  4. Perform action: Usually, there will be an execute button next to this option. Be sure to confirm that you have adjusted the "thumbnail processing method" and "thumbnail size" to the desired values on the same page before clicking it.
  5. Be patientClick the button, and the system will regenerate the 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.

Precautions before operation

It is crucial to develop good habits before performing any batch operations:

  • Data backup: We strongly recommend that you perform a complete backup of the website data and files before executing batch thumbnail regeneration.Although this operation is usually safe, it is better to be prepared for unforeseen situations just in case.
  • Confirm settingsBefore clicking the "Batch regenerate" button, please make sure that the "thumbnail processing method" (such as scaling proportionally by the longest side, filling by the longest side, or cropping by the shortest side) and the "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.

By following these steps and注意事项, you can easily batch regenerate thumbnails in Anqi CMS, ensuring that the website content is always presented in **status.**


Frequently Asked Questions (FAQ)

  1. Ask: Why didn't the images on the website's front page update immediately after batch regenerating thumbnails?Answer: 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 synchronous cleanup.
  2. Ask: Can I regenerate thumbnails for specific categories or articles instead of the entire site?Answer: The 'Batch Regenerate Thumbnails' feature of AnQi CMS is designed to operate over 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.
  3. Ask: What is the impact of setting the thumbnail size too large or too small?Answer: Setting the thumbnail size too large can cause the image file size to increase, which in turn slows down page loading speed, affects user experience and the SEO performance of the website.If set too small, it may cause the image to appear blurred or distorted on a high-definition screen, affecting the visual effect.It is recommended to choose a size that ensures clarity and controls file size according to your website design and target audience.