How to display the product pictures of the department store website
Source: Internet
Author: User
How to display the product picture of the mall type website
Backstage only upload a picture of the most elephant products.
If the front desk shows this big one, the website is too big.
What are the pictures of the mall-like websites now showing?
(The front desk can see small, medium, large size pictures)
Did you change the image of the most elephant from PHP to show it?
Or is there another way?
Thank you
------Solution--------------------
Generate thumbnail images ....
------Solution--------------------
Generate different proportions of the picture, need to what proportion, as long as the set scale can be found in a PHP thumbnail class
------Solution--------------------
Mall or similar CMS generally have templates, upload pictures, according to the size of the template to generate multiple thumbnails saved in the server
------Solution--------------------
thinkphp frame Next full version, thinkphp\library\think\image\driver\gd.class.php look at this kind of thumb method
There are 2 thumbnail generation strategies, which are generated synchronously on upload and generated when the page is called.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service