Update cover image wording to make sizing in usage clearer #4382

Closed
opened 2026-02-05 08:44:08 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @steven-loscheider on GitHub (Dec 29, 2023).

Describe the Bug

The cover images for shelves and books are not consistent. The Edit menu suggests : "This image should be approx 440x250px."

Images are cut off or have the wrong aspect ratio when uploaded. The corporate branded images I have used with exactly 440x250 px are cut off or have different aspect ratio than the original file. So it is difficult to create a coherent look.

Steps to Reproduce

Edit a shelf or book and add a cover image with the recommended size of 440x250px. If you refresh the shelf or book page, the image will not be displayed correctly as you created it.

Expected Behaviour

Image will be used 1:1 as uploaded.
Required aspect ratio and image resolution are defined in the edit menu before uploading
The original image will be used on all subsequent pages

Example to illustrate (with a realistic 250x150px image size):

  • Image requirements in the edit menu indicate 250x150 px image to be uploaded.
  • User generates and uploads 250x150 px image to bookstack.
  • Original image will be used on all subsequent pages. No cutting, stretching or resizing is performed.
  • Image looks as intended on all pages.

Screenshots or Additional Context

No response

Browser Details

Firefox 120.0.1

Exact BookStack Version

23.10.4

Originally created by @steven-loscheider on GitHub (Dec 29, 2023). ### Describe the Bug The cover images for shelves and books are not consistent. The Edit menu suggests : "This image should be approx 440x250px." Images are cut off or have the wrong aspect ratio when uploaded. The corporate branded images I have used with exactly 440x250 px are cut off or have different aspect ratio than the original file. So it is difficult to create a coherent look. ### Steps to Reproduce Edit a shelf or book and add a cover image with the recommended size of 440x250px. If you refresh the shelf or book page, the image will not be displayed correctly as you created it. ### Expected Behaviour Image will be used 1:1 as uploaded. Required aspect ratio and image resolution are defined in the edit menu before uploading The original image will be used on all subsequent pages Example to illustrate (with a realistic 250x150px image size): - Image requirements in the edit menu indicate 250x150 px image to be uploaded. - User generates and uploads 250x150 px image to bookstack. - Original image will be used on all subsequent pages. No cutting, stretching or resizing is performed. - Image looks as intended on all pages. ### Screenshots or Additional Context _No response_ ### Browser Details Firefox 120.0.1 ### Exact BookStack Version 23.10.4
OVERLORD added the 🛠️ Enhancement💆 UX labels 2026-02-05 08:44:08 +03:00
Author
Owner

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

Hi @steven-loscheider,
The mentioned size is really just a rough guide for something of sensible size.
At no point do we promise or indicate the image will be used as per its exact original size, nor would I want to indicate/promise/support that really, since the size and aspect ratio of the area the image is used for will change in a flexible manner depending on a number of factors so suit the design.

@ssddanbrown commented on GitHub (Dec 29, 2023): Hi @steven-loscheider, The mentioned size is really just a rough guide for something of sensible size. At no point do we promise or indicate the image will be used as per its exact original size, nor would I want to indicate/promise/support that really, since the size and aspect ratio of the area the image is used for will change in a flexible manner depending on a number of factors so suit the design.
Author
Owner

@szabeszg commented on GitHub (Dec 29, 2023):

I recommend changing the wording so that it more accurately aligns with the intended concept. Something like:
"The recommended image size is approximately 440x250 pixels. It is advisable to test beforehand to determine what suits you best."

@szabeszg commented on GitHub (Dec 29, 2023): I recommend changing the wording so that it more accurately aligns with the intended concept. Something like: "The recommended image size is approximately 440x250 pixels. It is advisable to test beforehand to determine what suits you best."
Author
Owner

@steven-loscheider commented on GitHub (Jan 4, 2024):

Hi @ssddanbrown
I see. Maybe change the wording on the edit page as @szabeszg suggested to avoid any confusion. In the meantime I will rework the graphics and add some margin to make them appear properly even if they get cut off here or there.

@steven-loscheider commented on GitHub (Jan 4, 2024): Hi @ssddanbrown I see. Maybe change the wording on the edit page as @szabeszg suggested to avoid any confusion. In the meantime I will rework the graphics and add some margin to make them appear properly even if they get cut off here or there.
Author
Owner

@ssddanbrown commented on GitHub (Feb 19, 2024):

Thanks for the input.
I've now updated the wording in 16327cf40c, to better hint about the flexibility of the dimensions in use. This will be part of the next feature release.

@ssddanbrown commented on GitHub (Feb 19, 2024): Thanks for the input. I've now updated the wording in 16327cf40cbc98d549a222d48c844eb8b3bc7bdc, to better hint about the flexibility of the dimensions in use. This will be part of the next feature release.
Author
Owner

@Saturo78 commented on GitHub (Oct 7, 2025):

Thanks for the input. I've now updated the wording in 16327cf, to better hint about the flexibility of the dimensions in use. This will be part of the next feature release.

Hi, sorry if this is a silly question, but I just can’t figure it out.
No matter how I resize my book cover image, parts of it (like the heads of people) keep getting cropped.
Could someone please tell me what exact size or aspect ratio the cover image should have so that it’s displayed fully in BookStack?
Thank you very much for your help!

@Saturo78 commented on GitHub (Oct 7, 2025): > Thanks for the input. I've now updated the wording in [16327cf](https://github.com/BookStackApp/BookStack/commit/16327cf40cbc98d549a222d48c844eb8b3bc7bdc), to better hint about the flexibility of the dimensions in use. This will be part of the next feature release. Hi, sorry if this is a silly question, but I just can’t figure it out. No matter how I resize my book cover image, parts of it (like the heads of people) keep getting cropped. Could someone please tell me what exact size or aspect ratio the cover image should have so that it’s displayed fully in BookStack? Thank you very much for your help!
Author
Owner

@ssddanbrown commented on GitHub (Oct 11, 2025):

@Saturo78 There is no fixed size, it's dynamic based on display options and screen dimensions.
You'd need to add custom CSS to fix sizes where desired to specific sizes/ratios.

@ssddanbrown commented on GitHub (Oct 11, 2025): @Saturo78 There is no fixed size, it's dynamic based on display options and screen dimensions. You'd need to add custom CSS to fix sizes where desired to specific sizes/ratios.
Author
Owner

@Saturo78 commented on GitHub (Oct 11, 2025):

I want to use this picture as a book cover: Size 440 x 250

Image

No matter what size I set, I always get this result:

Image
@Saturo78 commented on GitHub (Oct 11, 2025): I want to use this picture as a book cover: Size 440 x 250 <img width="330" height="189" alt="Image" src="https://github.com/user-attachments/assets/235a5533-161c-47a4-bdfc-c3418a1b900c" /> No matter what size I set, I always get this result: <img width="338" height="144" alt="Image" src="https://github.com/user-attachments/assets/2b17c708-a1be-4bf2-9965-97dc0178c79b" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4382