What is the image address? Is it a real address? Is it pseudo-static?

Source: Internet
Author: User
Tags webp
Check the two URLs: response? ImageView2w100h100q75formatwebp above .. check the two URLs:

Http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg

Http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg? ImageView/2/w/100/h/100/q/75/format/webp

The above is obviously the absolute address of an image, that is, the actual path of the image in the space. Why is the second image added with the following parameter :? ImageView/2/w/100/h/100/q/75/format/webp can output a thumbnail?

Isn't the above true image address, or how can it contain parameters? How can this be done,

The concept of true image paths is vague and depressing.

I hope you can explain it to me. Thank you!

Reply content:

Check the two URLs:

Http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg

Http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg? ImageView/2/w/100/h/100/q/75/format/webp

The above is obviously the absolute address of an image, that is, the actual path of the image in the space. Why is the second image added with the following parameter :? ImageView/2/w/100/h/100/q/75/format/webp can output a thumbnail?

Isn't the above true image address, or how can it contain parameters? How can this be done,

The concept of true image paths is vague and depressing.

I hope you can explain it to me. Thank you!

Because php is used for dynamic processing.
? The following parameter indicates the image parameters.
Image only indicates the path

The URL path is just a path, which is not exactly the same as the local file path concept.

For example, if you use the server as an API, assume that the interface URL (A) The path is http://img.yzcdn.cn/user/list, and cut the request that you implemented this interface. Then you can get the data.

URLAIt is not a file, but data is returned successfully. Suppose you replace the returned data with an image file, then the URL like http://img.yzcdn.cn/user/list can get the image file.

The URL address is just an identifier, which usually corresponds to a file in the website directory. However, if you do not want it to directly correspond to the files on the website, you can.

The http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg you mentioned above, maybe even the file isn't stored inWebsite root directory/upload_files/2015/08/26/14405577348089273 .jpgDirectory. When implementing the server, the server only determines whether to return a large image or a small Image Based on the URL path and parameters.

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.