logseq / logseq/logseq

Pasting larger images from Teams (base64 images) (1200x600) freezes Logseq

Open
#9,936 20 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/performance :type/regression
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
  1. Open any page in logseq
  2. find an image with large dimensions (e.g. 1200x600)
  3. convert it to base64, e.g. https://www.base64-image.de/ and copy it to the clipboard
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.