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.
A
The 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.