Replace Lenna image in tests with a truly free alternative.

The Lenna image used in image processing tests is considered problematic due to
its unclear copyright status. Right now it is considered to be "overlooked" by
the copyright holder Playboy.

A suitable replacement image is already provided in the libav sources which is
licensed under the Expat (MIT) license and thus truly free.

This replaces the Lenna image with the one from the libav project.
This commit is contained in:
Michael Fladischer 2016-02-09 11:43:05 +01:00
parent 7ddca36712
commit 4e370fdc59
7 changed files with 4 additions and 3 deletions

2
.gitignore vendored
View file

@ -8,7 +8,7 @@ MANIFEST
build
dist
/tests/media/*
!/tests/media/lenna.png
!/tests/media/reference.png
/venv
/venv3
/.env

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 KiB

BIN
tests/media/reference.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

View file

@ -17,9 +17,10 @@ def get_image_file():
http://en.wikipedia.org/wiki/Lenna
http://sipi.usc.edu/database/database.php?volume=misc&image=12
https://lintian.debian.org/tags/license-problem-non-free-img-lenna.html
https://github.com/libav/libav/commit/8895bf7b78650c0c21c88cec0484e138ec511a4b
"""
path = os.path.join(settings.MEDIA_ROOT, 'lenna.png')
path = os.path.join(settings.MEDIA_ROOT, 'reference.png')
return open(path, 'r+b')