diff options
author | waker <wakeroid@gmail.com> | 2011-05-13 19:40:24 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-05-13 19:40:24 +0200 |
commit | 0e2024ea10437d1a84e33b5ce979d264cf38876c (patch) | |
tree | 3f5aade0db6f8c921fa670d6d56aa1f5eb0ef25d /plugins/artwork | |
parent | 40ce81ee2379192193e335329110b33c78e821d1 (diff) |
fixed 16 bits per channel PNG handling in artwork plugin
Diffstat (limited to 'plugins/artwork')
-rw-r--r-- | plugins/artwork/artwork.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 997e96c6..ace08aa1 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -382,6 +382,9 @@ png_resize (const char *fname, const char *outname, int scaled_size) { png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, NULL, NULL); + /* Tell libpng to strip 16 bit/color files down to 8 bits/color */ + png_set_strip_16(png_ptr); + /* Strip alpha bytes from the input data without combining with the * background (not recommended). */ |