Can images of different scales be dynamically called on websites?

Source: Internet
Author: User
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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.