Skip to content

Inserted images have a fixed 512px width #1600

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

Open
1 task
manuelleduc opened this issue Apr 10, 2025 · 1 comment
Open
1 task

Inserted images have a fixed 512px width #1600

manuelleduc opened this issue Apr 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@manuelleduc
Copy link

manuelleduc commented Apr 10, 2025

Describe the bug
Images are always inserted with a width of 512px.

To Reproduce

  • open a blocknote editor with an empty content
  • create a small (e.g., 30x30px) image locally
  • insert an image block, upload the small image
  • observe the image

Expected:

  • the image is 30x30px
    Actual
  • the image is resized to 512px, leady to badly upscaled and pixalted images

Image

Misc

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
@manuelleduc manuelleduc added the bug Something isn't working label Apr 10, 2025
@nperez0111
Copy link
Contributor

Hm, yea this does seem to be the default. I'm not sure what the right thing here to do is:

// File preview width in px.
previewWidth: {
default: 512,
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants