dotCooCoo
6b0d1ed1c0
Crop Image: trim checks the image's RGBA size before decoding it
...
Crop Image's trim (object.cropImage {trim: true}) decoded the image
within MAX_RASTER_ALLOC (2 GB) and then converted it to RGBA. The
decoder holds the decoded image, before conversion, to that allowance,
so a gray or 1-bit image within it could take up to four times as much
once converted.
Trim now reads the image's size from its header first and, when
width × height × 4 is over the allowance, fails before anything is
decoded, with the check and message Load Texture uses: "an image of
W × H pixels is too large to draw". Images within the allowance are
trimmed as before.
2026-10-17 12:48:19 +07:00
..
2026-10-16 04:04:51 +07:00
2026-10-17 12:48:19 +07:00
2026-10-10 14:27:24 +07:00
2026-10-16 02:01:50 +07:00
2026-10-12 11:02:32 +07:00
2026-10-16 06:16:35 +07:00
2026-10-16 15:27:55 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 15:27:52 +07:00
2026-10-16 06:16:35 +07:00
2026-10-16 04:04:51 +07:00
2026-10-16 04:08:04 +07:00
2026-10-16 02:56:35 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 02:26:00 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 05:21:31 +07:00
2026-10-16 01:36:24 +07:00
2026-10-16 06:16:35 +07:00
2026-10-16 06:16:35 +07:00
2026-10-16 16:07:21 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 15:27:53 +07:00
2026-10-16 14:57:22 +07:00
2026-10-16 06:16:35 +07:00
2026-10-14 03:55:41 +07:00
2026-10-16 06:16:34 +07:00
2026-10-13 05:21:31 +07:00
2026-10-12 08:16:41 +07:00
2026-10-16 15:27:54 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 06:16:35 +07:00
2026-10-16 04:50:07 +07:00
2026-10-13 05:21:31 +07:00
2026-10-01 14:37:29 -04:00
2026-10-14 13:22:08 +07:00
2026-10-08 15:45:34 -07:00
2026-10-16 04:44:53 +07:00
2026-10-16 14:58:09 +07:00
2026-10-13 20:41:14 -06:00
2026-10-13 02:54:33 +07:00
2026-10-12 08:16:41 +07:00
2026-10-16 04:50:07 +07:00
2026-10-13 05:21:31 +07:00
2026-10-12 11:02:32 +07:00
2026-10-17 12:48:19 +07:00
2026-10-16 06:16:35 +07:00
2026-10-12 11:02:32 +07:00
2026-10-12 08:02:13 +07:00
2026-10-16 14:58:08 +07:00
2026-10-16 06:16:35 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 18:19:12 +02:00
2026-10-16 04:44:50 +07:00
2026-10-16 15:27:55 +07:00
2026-10-13 11:53:38 +07:00
2026-10-16 04:44:58 +07:00
2026-10-16 04:44:50 +07:00
2026-10-16 06:16:35 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 14:29:33 +07:00
2026-10-16 15:27:54 +07:00
2026-10-14 05:11:55 +07:00
2026-10-13 02:54:33 +07:00
2026-10-13 02:54:33 +07:00
2026-10-14 04:56:30 +07:00
2026-10-16 04:08:04 +07:00
2026-10-12 11:03:01 +07:00
2026-10-13 13:36:41 +07:00
2026-10-14 03:55:41 +07:00
2026-10-16 15:00:07 +07:00
2026-10-14 13:49:59 +07:00
2026-10-16 06:16:35 +07:00
2026-10-16 15:27:54 +07:00
2026-10-13 02:54:33 +07:00
2026-10-09 13:32:59 -07:00
2026-10-13 02:54:33 +07:00
2026-10-16 04:08:04 +07:00
2026-10-14 12:27:03 +07:00
2026-10-16 15:27:54 +07:00
2026-10-14 05:15:34 +07:00
2026-10-12 11:02:32 +07:00
2026-10-14 04:56:30 +07:00
2026-10-16 15:27:55 +07:00
2026-10-16 14:57:20 +07:00
2026-10-16 14:58:08 +07:00
2026-10-11 07:13:37 +07:00
2026-10-14 03:55:41 +07:00
2026-10-13 02:54:33 +07:00
2026-10-16 06:16:35 +07:00