-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for jpeg and jpg * update changelog
- Loading branch information
1 parent
ab53427
commit 287201a
Showing
7 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,13 +146,19 @@ def test_tile(rio, app): | |
"/cog/tiles/8/87/48.jpg?url=https://myurl.com/cog.tif&rescale=0,1000" | ||
) | ||
assert response.status_code == 200 | ||
assert response.headers["content-type"] == "image/jpg" | ||
|
||
response = app.get( | ||
"/cog/tiles/8/87/48.jpeg?url=https://myurl.com/cog.tif&rescale=0,1000" | ||
) | ||
assert response.status_code == 200 | ||
assert response.headers["content-type"] == "image/jpeg" | ||
|
||
response = app.get( | ||
"/cog/tiles/8/87/[email protected]?url=https://myurl.com/cog.tif&rescale=0,1000" | ||
) | ||
assert response.status_code == 200 | ||
assert response.headers["content-type"] == "image/jpeg" | ||
assert response.headers["content-type"] == "image/jpg" | ||
|
||
response = app.get( | ||
"/cog/tiles/8/87/[email protected]?url=https://myurl.com/cog.tif&nodata=0&bidx=1" | ||
|
@@ -376,7 +382,7 @@ def test_part(rio, app): | |
"/cog/crop/-56.228,72.715,-54.547,73.188.jpg?url=https://myurl.com/cog.tif&rescale=0,1000&max_size=256&return_mask=false" | ||
) | ||
assert response.status_code == 200 | ||
assert response.headers["content-type"] == "image/jpeg" | ||
assert response.headers["content-type"] == "image/jpg" | ||
meta = parse_img(response.content) | ||
assert meta["count"] == 1 | ||
assert meta["width"] == 256 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters