Skip to content
Unverified Commit d3d65e5c authored by Joachim Bauch's avatar Joachim Bauch
Browse files

Prevent loading images that would require too much memory.



For most image formats, the header specifies the width/height.
PHP allocates an image object from that size, even if the actual
image data is much smaller. This image object size is not limited
by the limit configured in PHP.

The memory limit can be configured through "config.php" setting
"preview_max_memory" and defaults to 128 MBytes which should be
enough for most images without filling up all memory.

Signed-off-by: default avatarJoachim Bauch <bauch@struktur.de>
parent 55219acb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment