-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GIF might require reading deeply into the data stream to conclusively decide whether an image is animated or not. This change allows "unknown" animation statuses, for the case where we found the image type/dimensions but have not enough data to conclusively say whether it's animated or not.
- Loading branch information
Showing
10 changed files
with
188 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
def test_eq(imgsize): | ||
assert imgsize.Size(1, 2, 'a', True) == imgsize.Size(1, 2, 'a', True) | ||
assert imgsize.Size(1, 2, 'a', True) != imgsize.Size(2, 2, 'a', True) | ||
assert imgsize.Size(1, 2, 'a', True) != imgsize.Size(1, 1, 'a', True) | ||
assert imgsize.Size(1, 2, 'a', True) != imgsize.Size(1, 2, 'b', True) | ||
assert imgsize.Size(1, 2, 'a', True) != imgsize.Size(1, 2, 'a', False) | ||
assert imgsize.Size(1, 2, 'a', imgsize.Animation.Yes) == imgsize.Size(1, 2, 'a', imgsize.Animation.Yes) | ||
assert imgsize.Size(1, 2, 'a', imgsize.Animation.Yes) != imgsize.Size(2, 2, 'a', imgsize.Animation.Yes) | ||
assert imgsize.Size(1, 2, 'a', imgsize.Animation.Yes) != imgsize.Size(1, 1, 'a', imgsize.Animation.Yes) | ||
assert imgsize.Size(1, 2, 'a', imgsize.Animation.Yes) != imgsize.Size(1, 2, 'b', imgsize.Animation.Yes) | ||
assert imgsize.Size(1, 2, 'a', imgsize.Animation.Yes) != imgsize.Size(1, 2, 'a', imgsize.Animation.No) | ||
|
||
|
||
def test_iter(imgsize): | ||
assert list(imgsize.Size(1, 2, 'a', True)) == [1, 2] | ||
assert list(imgsize.Size(1, 2, 'a', imgsize.Animation.Yes)) == [1, 2] |
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
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
Oops, something went wrong.