* fix(pdf): handle out-of-memory errors gracefully during cover generation and limit image size to prevent OOM Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> * fix(file): release native resources after saving image to prevent memory leaks Signed-off-by: Balázs Szücs <bszucs1209@gmail.com> --------- Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>