You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File-to-DB graph import results in loss of embedded asset alt text #1081
I migrated from OG to DB only to find all my embedded asset alt texts had not survived the migration
Reproduce the Bug
In Logseq OG 1.0.0
Add new graph "Temp"
Create new page "This Is the Page Name"
Add file "this-is-the-file-name.pdf" to page
Edit alt text (see screenshot)
From "this-is-the-file-name.pdf"
To "This is the alt text"
In Logseq 2.0.1
"Import existing notes" → "File to DB graph"
Select Temp graph from step 1.1
Select "Submit" to import
Navigate to page This Is the Page Name
Expected Behavior
On the page imported from OG to DB, the alt text is completely gone (see screenshot), replaced by the asset name.
When importing, could the asset name be set to the alt text instead of the file name?
I don't want to lose the alt next on all my assets when migrating to Logseq DB
Still on current master (d06ded9971): update-asset-links-in-block-title (deps/graph-parser/src/logseq/graph_parser/exporter.cljs, around 1529-1545) replaces  with a reference to the asset page, so the alt text of each image is lost on import. Keeping it needs a choice: the alt text belongs to each reference, not to the asset, and a per-reference label also needs renderer support (the closed draft logseq/logseq#13077 went that way). The open logseq/logseq#12915 (image assets imported as node embeds) changes the same import code, so the fix probably belongs with it.
Activity
mschiff commentedon Sep 10, 2026
I am also seeing this in current DB nightly for external links. Is this a new issue or does logseq/logseq#13077 not really fix it?
@tiensonqin ?
yuxi-liu-wired commentedon Oct 27, 2026
Still on current master (d06ded9971):
update-asset-links-in-block-title(deps/graph-parser/src/logseq/graph_parser/exporter.cljs, around 1529-1545) replaceswith a reference to the asset page, so the alt text of each image is lost on import. Keeping it needs a choice: the alt text belongs to each reference, not to the asset, and a per-reference label also needs renderer support (the closed draft logseq/logseq#13077 went that way). The open logseq/logseq#12915 (image assets imported as node embeds) changes the same import code, so the fix probably belongs with it.