Pasting larger images from Teams (base64 images) (1200x600) freezes Logseq
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 45k
- Forks
- 2.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 105
Description
Search first
- I searched and no similar issues were found
What Happened?
When pasting larger images (e.g. 1200x600 pixels) in the base64 format (e.g. from websites) into Logseq, it freezes completely. The only way is to kill it and start again.
Smaller images (300x300) are not a problem. Waiting doesn't help.
Reproduce the Bug
- Open any page in logseq
- find an image with large dimensions (e.g. 1200x600)
- convert it to base64, e.g. https://www.base64-image.de/ and copy it to the clipboard
- Paste it into Logseq
Result: The app freezes and you cannot do anything besides killing the process. close button doesn't do anything.
Expected Behavior
The image is pasted and visible
Screenshots
No response
Desktop or Mobile Platform Information
Windows 10, Logseq 0.9.11
Additional Context
The images are in PNG, but base64 encoded. This happens if you copy some images from websites.
Workaround: Paste to any image editor, copy it again
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the freeze in the Logseq desktop app by copying a large base64-encoded PNG and pasting it into a page on Windows. Trace the clipboard and paste handling from that entry point, then verify that the image appears without freezing and that smaller-image pasting still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100