diff options
author | shadlaws <shad@shadlaws.com> | 2013-01-29 18:35:10 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-01-29 18:35:10 +0100 |
commit | 536bdaa4db6e950cb4f382697964651b8eab63cd (patch) | |
tree | cd1896d151b5c37a483d7a2d3544318d0f102af8 /modules/gallery/images | |
parent | b7c73ee693473eef9b536fb05f8c2b190e47b866 (diff) |
#1967 - Improve how graphics::generate handles missing/bad images.
- Made missing_photo match the image format (jpg, png, etc.).
- Swapped missing_photo.png for missing_photo.jpg since it's likely to require less conversion to match.
- Improved error messages to user when things go wrong.
- Ensured that missing image placeholders are always copied when there's an error.
- Ensured we don't mistake no file output for a correct file output (delete target before attempt).
- Restructured graphics::generate a bit to work better with above changes.
- Added unit tests for graphics::generate.
Diffstat (limited to 'modules/gallery/images')
-rw-r--r-- | modules/gallery/images/missing_photo.jpg | bin | 0 -> 2034 bytes |
-rw-r--r-- | modules/gallery/images/missing_photo.png | bin | 1570 -> 0 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/modules/gallery/images/missing_photo.jpg b/modules/gallery/images/missing_photo.jpg Binary files differnew file mode 100644 index 00000000..a9d176d8 --- /dev/null +++ b/modules/gallery/images/missing_photo.jpg diff --git a/modules/gallery/images/missing_photo.png b/modules/gallery/images/missing_photo.png Binary files differdeleted file mode 100644 index 67786275..00000000 --- a/modules/gallery/images/missing_photo.png +++ /dev/null |