diff --git a/CHANGELOG.md b/CHANGELOG.md index e6b3c9d..41b319e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ### 2016-03-23 / 2.0.0 * **Dropped support for Node < 5.** +* `fastimage.info` always includes `realPath` and `realUrl` instead of omitting them if equals to `path` and `url`. ### 2016-03-08 / 1.2.0 diff --git a/docs/module-fastimage.html b/docs/module-fastimage.html index 39d1d56..c678019 100644 --- a/docs/module-fastimage.html +++ b/docs/module-fastimage.html @@ -173,8 +173,8 @@

<static> info "width": 1000, // The width of the image in pixels. "height": 1000, // The height of the image in pixels. "type": "gif", // The type of the image. Can be `bmp`, `gif`, `jpeg`, `png`, `psd`, `tif`, `webp` or `svg`. - "subject": "http://placehold.it/1000x1000.gif", // The original URL of the image. - "realUrl": "http://placehold.it/1000x1000.gif", // The real URL of the image after all the redirects. It will be omitted if equals to the URL. + "url": "http://placehold.it/1000x1000.gif", // The original URL of the image. + "realUrl": "http://placehold.it/1000x1000.gif", // The real URL of the image after all the redirects. "size": 24090, // The size of the image (in bytes). Present only if the server returned the Content-Length HTTP header. "transferred": 979, // The amount of data transferred (in bytes) to identify the image. "time": 171.43721 // The time required for the operation, in milliseconds. @@ -184,7 +184,7 @@

<static> info "height": 150, // The height of the image in pixels. "type": "png", // The type of the image. Can be `bmp`, `gif`, `jpeg`, `png`, `psd`, `tif`, `webp` or `svg`. "path": "1.png", // The original path of the image. - "realPath": "/home/user/1.png", // The absolute path of the image. It will be omitted if equals to the path. + "realPath": "/home/user/1.png", // The absolute path of the image. "size": 24090, // The size (in bytes) of the image. "time": 14.00558 // The time required for the operation, in milliseconds. }

When the source is a Buffer the object will be similar to this:

diff --git a/docs/quicksearch.html b/docs/quicksearch.html index 05f81d8..995c079 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@