Images not showing in pdf after update #4973

Open
opened 2026-02-05 09:30:28 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @npelov on GitHub (Sep 28, 2024).

Describe the Bug

I've installed bookstack long time ago. I don't know exactly the starting version but it was installed on centos 7 with php 7.3. I did have few problems while upgrading but I finally managet to upgrade to BookStack v24.05.4 with php 8.2. I didn't have png support in php which is why images weren't showing correctly. I added png support and now images show on screen but not in pdf exprot. In PDF I see Image not found or type unknown. The problem is only with old images - uploaded before the update. When I create a new page and upload new images the images show just fine in pdf.

Steps to Reproduce

I'm not sure

Expected Behaviour

Images should show in pdf

Screenshots or Additional Context

the image below is named image-1556486627237.png
this is how it looks in the pdf:
image
this is how it looks on the wabsite:
image

Old images are in directories named '2019-04-Apr' '2020-02-Feb' - the month is mentioned twice - as number and name. Permissions are ok, uploading works, new and old images have the same permissions and mode

Browser Details

Version 129.0.6668.70 (Official Build) (64-bit)

Exact BookStack Version

v24.05.4

Originally created by @npelov on GitHub (Sep 28, 2024). ### Describe the Bug I've installed bookstack long time ago. I don't know exactly the starting version but it was installed on centos 7 with php 7.3. I did have few problems while upgrading but I finally managet to upgrade to BookStack v24.05.4 with php 8.2. I didn't have png support in php which is why images weren't showing correctly. I added png support and now images show on screen but not in pdf exprot. In PDF I see Image not found or type unknown. The problem is only with old images - uploaded before the update. When I create a new page and upload new images the images show just fine in pdf. ### Steps to Reproduce I'm not sure ### Expected Behaviour Images should show in pdf ### Screenshots or Additional Context the image below is named `image-1556486627237.png` this is how it looks in the pdf: ![image](https://github.com/user-attachments/assets/ede99207-776f-4ec1-9c5e-738d7c1935a7) this is how it looks on the wabsite: ![image](https://github.com/user-attachments/assets/a4646019-6aa3-426c-8d37-4c75ca1ea89c) Old images are in directories named '2019-04-Apr' '2020-02-Feb' - the month is mentioned twice - as number and name. Permissions are ok, uploading works, new and old images have the same permissions and mode ### Browser Details Version 129.0.6668.70 (Official Build) (64-bit) ### Exact BookStack Version v24.05.4
OVERLORD added the 🐛 Bug label 2026-02-05 09:30:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4973