mirror of
https://github.com/h2non/imaginary.git
synced 2025-12-13 20:37:04 +01:00
fix testdata image links (#173)
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user