addon-bookstack icon indicating copy to clipboard operation
addon-bookstack copied to clipboard

Unable to upload images larger than ~1.5MB or view existing uploaded images

Open pruwait opened this issue 2 years ago • 3 comments

Problem/Motivation

My problem like here: https://github.com/BookStackApp/BookStack/issues/4306

(Why the issue was filed)

Expected behavior

(What you expected to happen)

Actual behavior

(What actually happened)

Steps to reproduce

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it) Need to edit container php.ini

pruwait avatar Jun 17 '23 13:06 pruwait

Just a note on this, since the mention of "1.5MB" could lead troubleshooting down the wrong path, this likely isn't an issue of file size limits, but the PHP process becoming exhausted of memory during attempted thumbnail creation. So often tangential to image file size, but depends on image compression.

Based upon what was previously done for increasing file size limits, might just need a php_admin_value[memory_limit] = 256M to double the default memory limit.

ssddanbrown avatar Jun 17 '23 17:06 ssddanbrown

I change memory_limit = 512M in php.ini and problem is gone.

pruwait avatar Jun 20 '23 20:06 pruwait

I change memory_limit = 512M in php.ini and problem is gone.

Can you validate with 256?, then will look at a change.

sinclairpaul avatar Jun 20 '23 21:06 sinclairpaul