Skip to content

Zero extra memory used when resizing image #17765

@RV7PR

Description

@RV7PR

Description

I have a large image on a production server, and when I try to resize it using imagecreatefromjpeg(), it exceeds the memory limit of 768MB. Strangely, when I test this exact same image in my development environment, it uses ZERO extra memory; even with a memory_limit set to 10MB, the image resizes without any issues. how does this work?

It's a large image (9449x37796 / 7mb) so exceeding the limit was expected though not the zero memory used on my dev env. (or at least not memory used by the php process I guess)

PHP Version

PHP 8.4.3

Operating System

CentOS 9 Stream

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions