The charm of website content largely comes from images.They not only beautify the page, but also convey information directly and attract the reader's attention.Therefore, how an Content Management System (CMS) efficiently and intelligently handles and displays image resources is crucial for the overall performance of a website.AnQiCMS (AnQiCMS) provides a comprehensive and flexible solution in this regard, whether it is the automatic generation of thumbnails or the optimization and presentation of the original large images, it can help us easily manage the visual content of the website.
Image upload and centralized management: a clear and organized digital asset library
In Anqi CMS, the image upload entry is very diverse.You can directly specify the main image or carousel image when publishing an article, product, or creating a single-page.It is more convenient that you can also insert images at any time in the document content editor, and the system will automatically handle these inline images.
All uploaded images will be stored in the "Image Resource Management" module.This is like your website's exclusive gallery, where you can create different categories as needed, classify the images, and organize your massive image resources in an orderly manner.When you need to replace an image, just operate on the image detail page, the image URL remains unchanged, which greatly facilitates the daily maintenance of the website and avoids the potential link failure problem caused by URL changes.At the same time, the system will also display detailed information such as the original filename, type, size, and resolution of the image, allowing you to know every picture in detail.
Intelligent thumbnail generation: Make visual presentation more consistent
The thumbnail is the "face" of the website content list page, and a unified size and style can make the page look professional and beautiful.AnQi CMS shows its intelligent side in thumbnail processing.
Firstly, it supportsAutomatically extract thumbnails.When you publish an article or product, if you forget to upload a dedicated thumbnail, but the content contains images, the system will automatically select the first image in the content as the thumbnail.Default thumbnail. Even if there are no images, and no thumbnails are manually uploaded, the system can use this default image to fill in the blank, ensuring that there are no gaps on the list page.
The AnQi CMS also provides a rich set of thumbnail processing strategies, you can flexibly choose according to the design requirements of your website:
- Scale proportionally to the longest sideThis method retains all the content of the image, scaling based on the longest side and adjusting the other side proportionally.This thumbnail generated can fully display the image, but the size may be inconsistent.
- Fill the longest sideIf you want the thumbnail width and height to be fixed but also display the image completely, you can choose this method.The image will be centered, and the insufficient area will be filled with white to ensure visual consistency.
- Trim according to the shortest edge: This method is very practical when you pursue strict thumbnail dimensions and do not mind cropping off parts of the image edges.The system will crop the image centered, ensuring the shortest side matches the specified size.
These configurations are completed in the background "Content Settings", you can accurately set the thumbnailsize. If in the future your website design style changes, you need to adjust the thumbnail size, and Anqi CMS also providesbatch regenerate thumbnailsThe function, one click can regenerate all historical images according to the new rules, saving a lot of trouble from manual operations.
Original large image processing and optimization: the art of balancing performance and quality.
In addition to thumbnails, the processing of the original large image is also directly related to the loading speed and user experience of the website. Anqi CMS is well-versed in this and provides multiple optimization features:
- Image format conversion and compressionTo improve website performance, AnQi CMS supports converting uploaded JPG, PNG, and other imagesAutomatically convert to WebP format.The WebP format usually reduces more file size than JPEG and PNG, significantly speeding up page loading speed.Of course, if you only want to keep the original format, you can also choose to disable this feature.Automatically Compress Large ImageThe ability, you can set a specified maximum width, when the image size exceeds this width, the system will automatically compress it to save storage space and bandwidth.
- Remote Image Download Control: If you reference external link images in the content, Anqi CMS can configure whetherAutomatically download these remote images to localThis is very helpful to ensure the stability and controllability of image resources, avoiding the loss of images due to the failure of external links.
- Image watermark managementTo protect the copyright of original images, AnQi CMS built-inimage watermark functionYou can add a watermark to the uploaded image to effectively prevent content from being stolen and maintain your intellectual property rights.
Front-end display: flexible invocation, rich presentation
In the front-end template, Anqi CMS provides intuitive tags and filters, allowing you to call and display images according to different scenarios:
- Image calls in documents, categories, and pagesIn the article details, product lists, category pages, and other locations, you can use
Logo(usually refers to the cover main image/large image),Thumb(thumbnail) as well asImages(A set of images, such as a carousel) and other tags to display images. For example,{{item.Logo}}or{{archive.Thumb}}you can directly obtain the image address. For a group of images, you can useforLoop throughImagesan array to display. - Content editor image optimizationFor images in the article body, Anqi CMS also considers performance optimization. When an image is inserted into the content editor, it supports combining with front-end image lazy loading technology, such as using
lazy="data-src"This attribute makes the image load only when the user scrolls to the visible area, improving the initial loading speed of the page. thumbFilterFor more advanced template developers,thumbThe filter allows for dynamically fetching a thumbnail version of any image URL, providing great flexibility for custom image display.
In summary, Anqi CMS provides convenient upload and management tools for image resources, and also satisfies the modern website's demand for efficient and high-quality presentation of visual content through intelligent thumbnail generation, performance optimization strategies, and flexible frontend calling methods.It truly makes image management worry-free and effortless, while ensuring that the website's visual effects and loading speed reach **status.
Frequently Asked Questions (FAQ)
1. Have I already uploaded a lot of pictures on my website? Will these old pictures be automatically converted if I enable WebP format conversion now?
By default, after the WebP format conversion feature is enabled, it will only affect youthe images uploaded after thatActivated. If you wish to convert existing JPG, PNG, and other old images on the website to WebP format, Anqi CMS providesthe accompanying WebP conversion tool(usually in the background "content settings"), you can use this tool for batch conversion.
2. Can I use thumbnails of different sizes in different page areas (such as the homepage, article detail page)?
The "Content Settings" in AnQi CMS mainly manages the global default thumbnail size and processing method. If you need to display different sizes of thumbnails in specific templates or modules, you canCustom template codeCombinethumbFilter to implement. For example, use it on the list page{{item.Thumb}}It will call the globally set thumbnail, but you can also use it through{{item.Logo|thumb: "150x100"}}(Assuming there is such a filter syntax) Specify a specific size in the template or directly upload an image that fits the area.
What will be displayed on the front end if an article does not have an uploaded thumbnail and no images in the content?
In this case, the system will attempt to display the "Content Settings" you have in the background firstUpload the "default thumbnail"If