Can images of different sizes be dynamically called on websites? images of different sizes may be stored in different locations. images of different sizes are required, such as posting an article, uploading a title image, generate an original 80*700 and a sleep 00*100 Image. if I want to call this image on the homepage, the size is 200*240. what should I do? & nbsp; is the width of the 580*700 source Image limited to 200? (Can images of different sizes be dynamically called on the website when the source image is loaded?
Images of different sizes may be needed at different locations on the page
For example, if you have published an article, uploaded a title image, and generated an original 80*700 and a 100
If I want to call this image on the homepage and the size is 200*240, what should I do? is the width of the 580*700 source Image limited to 200? (Loading the source image affects performance)
When uploading an image, upload all the required size charts (this is not good, for example, I use different sizes on the home page or other pages, isn't it necessary to upload many images of different sizes)
Are there any good solutions available:
------ Solution --------------------
Reference:
Quote: reference:
Images of different sizes may be needed at different locations on the page
For example, if you have published an article, uploaded a title image, and generated an original 80*700 and a 100
If I want to call this image on the homepage and the size is 200*240, what should I do? is the width of the 580*700 source Image limited to 200? (Loading the source image affects performance)
When uploading an image, upload all the required size charts (this is not good, for example, I use different sizes on the home page or other pages, isn't it necessary to upload many images of different sizes)
Are there any good solutions?
How to design the database structure? There are seven different inch question maps. are seven fields created for storage?
For example
Video segment 123.jpg
Data warehouse 123.jpg
Seven pictures of different sizes are a_123.jpg B _123.jpg...
The database only saves one... prefix of the size when the program is called.
------ Solution --------------------
My approach is to use php to generate slices of various sizes, such
I used the.jpg file as the original file. each time I used the file, I used different sizes to transfer it to the server when I requested it. the server will still use img. php dynamic resizing refers to the size required by the customer, after which it is directly exported to the customer terminal, this animated video is not directly stored in the server. The good thing about this practice is that you do not need to store multiple video clips, he is not worried about traffic issues, but he will use the server's cpu processing capability.