hyprnote icon indicating copy to clipboard operation
hyprnote copied to clipboard

The image size is too large in the editor. Can it be optimized to a smaller size?

Open zhouhao-python opened this issue 2 months ago • 2 comments

The image size is too large in the editor. Can it be optimized to a smaller size? It looks really weird; I took a very small screenshot, but it's showing up as a very large size in the notes.

zhouhao-python avatar Nov 07 '25 07:11 zhouhao-python

Hi @zhouhao-python what version are you using? Also curious what is expected behavior here. Make it resizable, or set max-width?

yujonglee avatar Nov 23 '25 05:11 yujonglee

• App Name: Hyprnote • App Version: 0.0.84 • SHA: f5b702f9156a294652d4e1026daec39cb3027144 • Backends: GgmlBackend { kind: "GPU", name: "Metal", description: "Apple M2", total_memory_mb: 10922, free_memory_mb: 10922 } GgmlBackend { kind: "CPU", name: "CPU", description: "Apple M2", total_memory_mb: 16384, free_memory_mb: 16384 }

I'm glad to receive your reply. The above is the version information I'm using. I understand that users should be able to set the size of images in notes. Additionally, I've done some research ... For the Markdown format, images do not save height and width. SO tiptap uses the HTML format? If it does, how is the fluid rendering achieved for enhanced notes? Should the output from the large model be in Markdown format?

zhouhao-python avatar Nov 24 '25 01:11 zhouhao-python

i think we can achieve this by preserving the aspect ratio and resizing via width.

ComputelessComputer avatar Dec 12 '25 08:12 ComputelessComputer

Ok, HTML itself supports saving the width and height of images.

zhouhao-python avatar Dec 12 '25 08:12 zhouhao-python

related to https://github.com/fastrepl/hyprnote/issues/969. need to add file handler and store blob.

ComputelessComputer avatar Dec 12 '25 09:12 ComputelessComputer