summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Gallery_Installer_Test.php
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-01-25 23:47:08 +0100
committershadlaws <shad@shadlaws.com>2013-01-25 23:47:08 +0100
commitc2d1c2407fdef326cd1f59d6852620f915a5c0e1 (patch)
treec86333e0678530d79a7e9162f4f683cd455d16a5 /modules/gallery/tests/Gallery_Installer_Test.php
parent776fe75ceb93f8eb729d13d58fb411d6ceeb9270 (diff)
#1965 - Improve sanity checks and copy/convert/process logic for rotate and resize.
- resize: ensured that resize is skipped *only* if the metadata is valid or the options are well-defined and would upscale. Then, if resize is skipped, check to see if it still needs to be converted. Previous conditions would allow a small PNG to get copied to a JPG, and would allow a corrupted JPG to be copied to the output. - rotate: add checks for empty file or empty options. - use get_file_metadata instead of direct getimagesize call. - add unit tests for rotate and resize, including some for corrupted input files and missing options.
Diffstat (limited to 'modules/gallery/tests/Gallery_Installer_Test.php')
0 files changed, 0 insertions, 0 deletions