What is the address of this picture, the real address? Did you use pseudo-static?

Source: Internet
Author: User
Tags webp
Take a look at these 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 an absolute address of a picture, that is, the real path of the picture in space, why the second picture in the following parameters:? IMAGEVIEW/2/W/100/H/100/Q/75/FORMAT/WEBP can output a small map?

is not the above that the real picture address, otherwise how can take parameter, this is how to do it,

The concept of the real picture path is rather vague, very depressed.

Hope to have the great God to explain, grateful disrespect!

Reply content:

Take a look at these 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 an absolute address of a picture, that is, the real path of the picture in space, why the second picture in the following parameters:? IMAGEVIEW/2/W/100/H/100/Q/75/FORMAT/WEBP can output a small map?

is not the above that the real picture address, otherwise how can take parameter, this is how to do it,

The concept of the real picture path is rather vague, very depressed.

Hope to have the great God to explain, grateful disrespect!

Because it's dynamically processed in PHP.
The parameters of the picture are represented by the following arguments.
Image simply represents a path

The path to the URL is simply a path, and the concept of a local file path is not exactly the same.

For example, you use the server to make an API interface, assuming that A the path of the interface URL () is http://img.yzcdn.cn/user/list, and you implement the interface request. Then you can get the data.

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

The URL address is simply an identifier, which, in general, can correspond to a file in the site directory. But if you do not want it to directly correspond to the file of the website is also possible.

The http://img.yzcdn.cn/upload_files/2015/08/26/14405577348089273.jpg you mentioned above may even be files that are not stored in the directory at all 网站根目录/upload_files/2015/08/26/14405577348089273.jpg . When the server is implemented, it just depends on the URL path and parameters to decide whether to return a large or small map.

  • 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.