diff options
author | shadlaws <shad@shadlaws.com> | 2013-01-25 23:47:08 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-01-25 23:47:08 +0100 |
commit | c2d1c2407fdef326cd1f59d6852620f915a5c0e1 (patch) | |
tree | c86333e0678530d79a7e9162f4f683cd455d16a5 /lib/uploadify/uploadify.swf | |
parent | 776fe75ceb93f8eb729d13d58fb411d6ceeb9270 (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 'lib/uploadify/uploadify.swf')
0 files changed, 0 insertions, 0 deletions