diff --git a/pilbox/test/data/expected/test-p-mode-100x100-mode=crop.jpeg b/pilbox/test/data/expected/test-p-mode-100x100-mode=crop.jpeg new file mode 100644 index 0000000..8101f97 Binary files /dev/null and b/pilbox/test/data/expected/test-p-mode-100x100-mode=crop.jpeg differ diff --git a/pilbox/test/data/test-p-mode.gif b/pilbox/test/data/test-p-mode.gif new file mode 100644 index 0000000..c895d7e Binary files /dev/null and b/pilbox/test/data/test-p-mode.gif differ diff --git a/pilbox/test/image_test.py b/pilbox/test/image_test.py index 08a91b7..72fb4c9 100644 --- a/pilbox/test/image_test.py +++ b/pilbox/test/image_test.py @@ -35,6 +35,9 @@ def get_image_resize_cases(): cases.append(_criteria_to_resize_case( "test space.jpg", _get_simple_criteria_combinations()[0])) + cases.append(_criteria_to_resize_case( + "test-p-mode.gif", dict(width=100, height=100, format='jpeg', mode='crop'))) + for criteria in _get_advanced_criteria_combinations(): cases.append(_criteria_to_resize_case("test-advanced.jpg", criteria))