hassio-addons / addon-bookstack

Bookstack - Home Assistant Community Add-ons
https://addons.community
MIT License
60 stars 13 forks source link

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

Open pruwait opened 1 year ago

pruwait commented 1 year ago

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

ssddanbrown commented 1 year ago

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.

pruwait commented 1 year ago

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

sinclairpaul commented 1 year ago

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

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