Skip to content
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

Image sizes show up even when "keepImageSize":"StandardMD" #601

Closed
VeraStray opened this issue Feb 9, 2024 · 5 comments
Closed

Image sizes show up even when "keepImageSize":"StandardMD" #601

VeraStray opened this issue Feb 9, 2024 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@VeraStray
Copy link

VeraStray commented Feb 9, 2024

Converting from .enex to standardMD
Fedora/Nobara 38, Gnome, RPM
Try as I might, image sizes (are at least partial image sizes) are showing up in the markdown.

I have set:
"taskOutputFormat":"StandardMD"
"keepImageSize":"StandardMD"
"outputFormat":"StandardMD"

I will post full config file below.

Results:
I am getting image links that have sizes in them. Thus linking to the files is broken until I removed the extra size info.

Example:
![](./_resources/filename.522.jpeg =325x171)
![](./_resources/example05.png =180x180)

Often there is a partial size reference:
![](./_resources/evernote63348730943318021925677.jpg =4032x)

CONFIG FILE
{"enexSources":["/run/media/$removed$/2TB-media/Evernote_BU/Cabinet.enex"],"outputDir":"/run/media/$removed$/2TB-media/EN_Export_Tests/835","isMetadataNeeded":true,"isNotebookNameNeeded":false,"isZettelkastenNeeded":false,"useZettelIdAsFilename":false,"plainTextNotesOnly":false,"skipLocation":true,"skipCreationTime":true,"skipUpdateTime":true,"skipSourceUrl":true,"skipWebClips":false,"skipTags":true,"useHashTags":true,"outputFormat":"StandardMD","taskOutputFormat":"StandardMD","skipEnexFileNameFromOutputPath":true,"keepMDCharactersOfENNotes":false,"monospaceIsCodeBlock":false,"keepOriginalHtml":false,"currentTemplate":"---\n\n{created-at-block}Created at: {created-at}{end-created-at-block}\n{updated-at-block}Last updated at: {updated-at}{end-updated-at-block}\n{source-url-block}Source URL: {source-url}{end-source-url-block}\n{tags-block}tags: {tags}{end-tags-block}\n\n---\n\n{title-block}# {title}{end-title-block}\n\n\n{content-block}{content}{end-content-block}\n\n","resourcesDir":"_resources","trimStartingTabs":false,"convertPlainHtmlNewlines":false,"encryptionPasswords":[""],"nestedTags":{"separatorInEN":"_","replaceSeparatorWith":"---","replaceSpaceWith":"-"},"logseqSettings":{"journalNotes":false},"obsidianSettings":{"omitLinkDisplayName":false},"dateFormat":"YYYY-MM-DD","keepImageSize":"StandardMD","keepOriginalAmountOfNewlines":false,"addExtensionToInternalLinks":true,"urlEncodeFileNamesAndLinks":true,"haveEnexLevelResources":true,"haveGlobalResources":false,"useUniqueUnknownFileNames":false,"useLevenshteinForLinks":false,"sanitizeResourceNameSpaces":true,"replacementChar":"_","replacementCharacterMap":{"<":"_",">":"_",":":"_","\"":"_","/":"_","\\":"_","|":"_","?":"_","*":"_"}}

Copy link

github-actions bot commented Feb 9, 2024

Yihaa, thank you for reporting me this issue and to let me improve Yarle!

@akosbalasko
Copy link
Owner

Hi @VeraStray ,
Thanks for reporting this, it is mentioned in #596, I'll fix it soon.

@akosbalasko akosbalasko added the duplicate This issue or pull request already exists label Feb 10, 2024
@akosbalasko
Copy link
Owner

HI @VeraStray ,
I released a feature to enable/disable imagesize keeping in links.

We have two properties from now, keepImageSize is a true/false boolean, to specify whether to keep the sizes or not, while imageSizeFormat specifies the format like Obsidian or Standard, if keepImageSize is set to true.
(feat: #611)

@VeraStray
Copy link
Author

VeraStray commented Feb 28, 2024

Thank you @akosbalasko ! I really appreciate that this project exists and can help me escape Evernote. Image links work perfectly. Nothing showing up in the log for me when it runs. But otherwise all good. Just saw the donate option in the app.

@akosbalasko
Copy link
Owner

@VeraStray ,
Great to hear that it helps! And thanks for the coffees! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants