zackad / manga-server

Serve your manga collection over network.
MIT License
3 stars 0 forks source link

Memoryleak when generating cover thumbnail in some cases #199

Open zackad opened 9 months ago

zackad commented 9 months ago

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.

zackad commented 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.

zackad commented 9 months ago

This happen with docker image from bitnami/php-fmp@sha256:92c3493394f81071e68d67a31efbe6523c9a6315ef71dffbc6121303dbcec343. Cannot reproduce with dev environment using php83 from nixpkgs.

zackad commented 8 months ago

try other docker images, either debian or alpine based and even frankenphp. still can't figure it out why memory usage is significantly different.