-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Image preview stops to work after image upload #244
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
I've just done a quick test with my install
Uploaded some jpgs but can't replicate the issue. Can you check the laravel log in /config/log and see if that's reporting any errors or other issues? |
This is often due to a lack of memory for thumbnail generation, and I doubt an issue for the linuxserver team. |
In my
It really depends on the jpgs. Here I got two jpgs. The first one is not breaking the preview, the second one does. (I hope Githubs upload preserves the metadata) |
OK, I can replicate it with your images. I would suggest reporting it upstream as I don't think it's anything we're doing wrong, but obviously I'm happy to make any changes we need to to fix it. |
Is there an existing issue for this?
Current Behavior
I updated my docker bookstack instance from
to
with the command
I did this to solve the issue EXIF data is ignored when uploading images, which should have been fixed by the commit Add php83-exif for reading image EXIF data. After the upgrade it got now worse. When I upload a new .jpg Picture the image preview breaks. It doesn't break after uploading a new .png image. The image preview will stay in this state:
I can press
Load More
which will trigger some images to load, but I think some are still missing. I guess it depends on the images having specific EXIF meta data or not.Edit: I can confirm this as when I take a image that is breaking the preview, open it in paint, save it as a new .jpg, the image doesn't break the preview anymore.
I can fix the issue temporarily by going into the running docker container and run
php artisan -f bookstack:cleanup-images
. But when I try to reupload the image, it will break again.Expected Behavior
No response
Steps To Reproduce
Environment
CPU architecture
arm64
Docker creation
docker-compose.yml: --- version: "2" services: bookstack: image: lscr.io/linuxserver/bookstack container_name: bookstack environment: - PUID=2001 - PGID=2001 - APP_URL=http://192.168.178.185 - DB_HOST=bookstack_db - DB_PORT=3306 - DB_USER=bookstack - DB_PASS=mypassword - DB_DATABASE=bookstackapp volumes: - ./bookstack_app_data:/config ports: - 127.0.0.1:6875:80 restart: unless-stopped depends_on: - bookstack_db bookstack_db: image: lscr.io/linuxserver/mariadb container_name: bookstack_db environment: - PUID=1000 - PGID=1000 - MYSQL_ROOT_PASSWORD=mypassword - TZ=Europe/Berlin - MYSQL_DATABASE=bookstackapp - MYSQL_USER=bookstack - MYSQL_PASSWORD=mypassword volumes: - ./bookstack_db_data:/config restart: unless-stopped
Container logs
The text was updated successfully, but these errors were encountered: