Image compression for PDF export #3968

Closed
opened 2026-02-05 07:59:13 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @Eekrs on GitHub (Aug 11, 2023).

Describe the feature you'd like

Compression of images in PDF files.

Describe the benefits this would bring to existing BookStack users

PDF files are getting very large when using a lot of high quality images. Compressed images would reduce the file size.
Furthermore the PDF generation runs in timeouts, because of the file size. Benefit would be that PDF files with high quality images could be generated.

Can the goal of this request already be achieved via other means?

No.

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundemental request

How long have you been using BookStack?

1 to 5 years

Additional context

No response

Originally created by @Eekrs on GitHub (Aug 11, 2023). ### Describe the feature you'd like Compression of images in PDF files. ### Describe the benefits this would bring to existing BookStack users PDF files are getting very large when using a lot of high quality images. Compressed images would reduce the file size. Furthermore the PDF generation runs in timeouts, because of the file size. Benefit would be that PDF files with high quality images could be generated. ### Can the goal of this request already be achieved via other means? No. ### Have you searched for an existing open/closed issue? - [X] I have searched for existing issues and none cover my fundemental request ### How long have you been using BookStack? 1 to 5 years ### Additional context _No response_
OVERLORD added the 🔨 Feature Request label 2026-02-05 07:59:13 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 12, 2023):

Hi @Eekrs,

Do you have a simplified example to share, where it shows this is problematic?

From what I can tell, the PDF should be built from PNG/JPEG data which is already compressed via its file format.
On image upload/insert within BookStack, we generally limit to 2x page width which should limit dimensional scale of images in most cases.

I'd just need something a bit quantifiable to look into.

@ssddanbrown commented on GitHub (Aug 12, 2023): Hi @Eekrs, Do you have a simplified example to share, where it shows this is problematic? From what I can tell, the PDF should be built from PNG/JPEG data which is already compressed via its file format. On image upload/insert within BookStack, we generally limit to 2x page width which should limit dimensional scale of images in most cases. I'd just need something a bit quantifiable to look into.
Author
Owner

@ssddanbrown commented on GitHub (Aug 29, 2023):

Since there's been no further follow up I'll go ahead and close this off.

@ssddanbrown commented on GitHub (Aug 29, 2023): Since there's been no further follow up I'll go ahead and close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3968