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.
URLA
It 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 .jpg
Directory. 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.