fix testdata image links (#173)

This commit is contained in:
Till Krüss
2017-11-23 11:04:57 -08:00
committed by Tomás
parent a988d2fb2b
commit 0e3c78ea8c
2 changed files with 3 additions and 3 deletions

View File

@@ -394,12 +394,12 @@ curl -O "http://localhost:8088/crop?width=500&height=400&file=foo/bar/image.jpg"
Fetching the image from a remote server (you must pass the `-enable-url-source` flag):
```
curl -O "http://localhost:8088/crop?width=500&height=400&url=https://raw.githubusercontent.com/h2non/imaginary/master/fixtures/large.jpg"
curl -O "http://localhost:8088/crop?width=500&height=400&url=https://raw.githubusercontent.com/h2non/imaginary/master/testdata/large.jpg"
```
Crop behaviour can be influenced with the `gravity` parameter. You can specify a preference for a certain region (north, south, etc.). To enable Smart Crop you can specify the value "smart" to autodetect the most interesting section to consider as center point for the crop operation:
```
curl -O "http://localhost:8088/crop?width=500&height=200&gravity=smart&url=https://raw.githubusercontent.com/h2non/imaginary/master/fixtures/smart-crop.jpg"
curl -O "http://localhost:8088/crop?width=500&height=200&gravity=smart&url=https://raw.githubusercontent.com/h2non/imaginary/master/testdata/smart-crop.jpg"
```

View File

@@ -18,7 +18,7 @@ suite() {
echo "POST http://localhost:$port/$2" | vegeta attack \
-duration=30s \
-rate=50 \
-body="./fixtures/large.jpg" \ | vegeta report
-body="./testdata/large.jpg" \ | vegeta report
sleep 1
}