Overview
Comment: | In some rare cases, the JPEG file may be corrupted |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
2e2dbcdc5077ae5d1e29d3730d3e1a10 |
User & Date: | bohwaz on 2023-05-31 14:05:26 |
Other Links: | manifest | tags |
Context
2023-05-31
| ||
21:44 | Markdown: handle contenful extensions check-in: f8acad40e9 user: bohwaz tags: trunk | |
14:05 | In some rare cases, the JPEG file may be corrupted check-in: 2e2dbcdc50 user: bohwaz tags: trunk | |
13:35 | Form: fix parsing of rules check-in: 7b3650ae0c user: bohwaz tags: trunk | |
Changes
Modified src/lib/KD2/Graphics/Image.php from [02e823570d] to [99d2b0329c].
︙ | ︙ | |||
108 109 110 111 112 113 114 | } } if (!self::$init) { $this->path = $path; | > | > > > > | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | } } if (!self::$init) { $this->path = $path; try { $info = getimagesize($path); } catch (\Throwable $e) { throw new \RuntimeException(sprintf('Invalid image format: %s (%s)', $path, $e->getMessage()), 0, $e); } if (!$info && function_exists('mime_content_type')) { $info = ['mime' => mime_content_type($path)]; } if (!$info) |
︙ | ︙ |