Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Image to PDF has a very low file size limit

Open kevinaaaquil opened this issue 2 years ago • 6 comments

The conversion of images to pdf fails if the collective size of uploads is greater than 2MB

kevinaaaquil avatar Sep 19 '23 13:09 kevinaaaquil

How does this 'fail' for you?

Frooodle avatar Sep 19 '23 13:09 Frooodle

How does this 'fail' for you?

It returns a 413 code everytime the collective size is greater that 2MB

kevinaaaquil avatar Sep 19 '23 15:09 kevinaaaquil

This shouldn't be unique to any operation. Are you running it behind nginx or anything?

Frooodle avatar Sep 19 '23 17:09 Frooodle

If you are using nginx as a reverse proxy then add these options to your config. Then tweak to your needs


proxy_buffering      off;  

client_max_body_size 0;  

proxy_request_buffering off;

daemon-byte avatar Sep 20 '23 19:09 daemon-byte

Hello, I am getting the same issue, any images above 2mb and the 'Image to PDF' fails.

Error : Internal Server Error:Cannot invoke "java.awt.image.BufferedImage.getColorModel()" because "image" is null

I am running this currently in Docker, accessing it directly.

Is there something that I need to put in the docker compose config maybe? to increase this limit

anish42 avatar Nov 29 '23 17:11 anish42

can you post your full log?

Frooodle avatar Dec 14 '23 19:12 Frooodle

Closing due to no comments and can not repeat

Frooodle avatar Feb 03 '24 13:02 Frooodle