|
@@ -7,19 +7,19 @@ imgproxy can be configured to process files from your local filesystem. To use t
|
|
|
|
|
|
### Example
|
|
|
|
|
|
-Assume you want to process an image that stored locally at `/path/to/project/images/logos/evil_martians.png`. Run imgproxy with `IMGPROXY_LOCAL_FILESYSTEM_ROOT` set to your images directory:
|
|
|
+Assume you want to process an image that is stored locally at `/path/to/project/images/logos/evil_martians.png`. Run imgproxy with `IMGPROXY_LOCAL_FILESYSTEM_ROOT` set to your images directory:
|
|
|
|
|
|
```bash
|
|
|
IMGPROXY_LOCAL_FILESYSTEM_ROOT=/path/to/project/images imgproxy
|
|
|
```
|
|
|
|
|
|
-Then use path inside this directory as the source URL:
|
|
|
+Then, use the path inside this directory as the source URL:
|
|
|
|
|
|
```
|
|
|
local:///logos/evil_martians.png
|
|
|
```
|
|
|
|
|
|
-The URl for resizing this image to fit 300x200 will look like this:
|
|
|
+The URL for resizing this image to fit 300x200 will look like this:
|
|
|
|
|
|
```
|
|
|
http://imgproxy.example.com/insecure/rs:fit:300:200:no:0/plain/local:///logos/evil_martians.png@jpg
|