HSIEH TSUNGYU 9d5dc582be Error handling for unsupported transparency
When input images (palette mode) have transparency (bytes) in info,
the output images (RGB mode) will inherit it,
causing ValueError in Pillow:PIL/PngImagePlugin.py#1364
when trying to unpack this bytes.

This commit check the PNG mode and transparency info,
removing transparency if it's RGB mode and transparency is bytes
2024-02-18 19:27:33 +08:00
..
2023-09-09 09:15:09 +03:00
2024-01-31 12:29:58 +08:00
2024-01-04 00:26:30 +02:00
2024-02-15 14:22:13 -05:00
2024-01-19 00:39:14 +01:00
2023-05-10 11:05:02 +03:00
2024-01-31 12:29:58 +08:00
2023-12-16 10:15:08 +03:00
2023-08-01 08:27:54 +03:00
2023-08-29 00:54:57 -06:00
2024-01-02 07:05:05 +03:00
2024-01-27 22:30:47 +03:00
2024-01-31 12:29:58 +08:00
2023-09-11 09:22:27 +08:00
2023-08-22 18:49:08 +03:00
2024-01-21 09:02:18 +09:00
2023-05-18 10:12:17 +03:00
2024-01-31 12:29:58 +08:00
2024-01-26 17:16:53 +09:00
2024-02-15 14:22:13 -05:00
2024-01-20 00:40:03 +04:00
2023-09-30 08:23:12 +03:00
2023-05-10 11:05:02 +03:00
2024-01-27 21:55:52 +09:00
2023-05-10 08:43:42 +03:00
2023-05-10 08:43:42 +03:00
2023-11-05 19:32:21 +03:00
2024-01-27 22:30:47 +03:00
2024-01-08 06:43:39 -06:00
2023-12-02 15:54:25 +08:00
2024-01-08 06:43:39 -06:00
2023-08-04 13:38:52 +08:00
2023-08-28 03:43:27 +09:00
2024-01-21 03:53:58 +09:00
2024-02-01 15:40:15 +09:00
2024-01-27 14:55:47 +09:00
2023-08-04 08:04:23 +03:00
2024-02-10 05:39:01 +09:00
2023-12-31 22:38:30 +03:00
2024-01-06 19:14:06 +08:00