Open zackad opened 9 months ago
increasing memory limit is not scalable solution. we need to handle large image such as korean longstrip format that would easily blew our memory constraint.
possible solution is to use imagemagick extension to handle image manipulation.
This happen with docker image from bitnami/php-fmp@sha256:92c3493394f81071e68d67a31efbe6523c9a6315ef71dffbc6121303dbcec343
. Cannot reproduce with dev environment using php83 from nixpkgs.
try other docker images, either debian or alpine based and even frankenphp. still can't figure it out why memory usage is significantly different.
This problem caused by
Imagine\Image\Metadata\ExifMetadataReader
that load actual image data into memory encoded as base64 string. There's no easy fix for this except by increasing memory limit.