fix: update ImageMagick to use 'magick' instead of deprecated 'convert'
- Update default ImageMagick executable from 'convert' to 'magick' in constants - Remove deprecated 'convert' subcommand from ImageMagick spawn calls - Update UI labels and settings descriptions to reflect 'magick' command - Fix pdf2img PATH environment to include Node.js installation paths This resolves ImageMagick v7 deprecation warning and fixes pdf2img execution failure caused by missing Node.js in PATH. The 'convert' command was deprecated in ImageMagick v7 in favor of the unified 'magick' command. Fixes: "env: node: No such file or directory" error in pdf2img execution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
4 files changed
+18
-9
No files matched your search
@@ -1437,10 +1437,10 @@ class ObsidianTypstPDFExportSettingTab extends PluginSettingTab {
|
||||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('ImageMagick convert path')
|
||||
.setDesc('Path to ImageMagick convert executable (leave empty to use system PATH)')
|
||||
.setName('ImageMagick path')
|
||||
.setDesc('Path to ImageMagick executable (leave empty to use system PATH)')
|
||||
.addText(text => text
|
||||
.setPlaceholder('convert')
|
||||
.setPlaceholder('magick')
|
||||
.setValue(this.plugin.settings.executablePaths.imagemagickPath)
|
||||
.onChange(async (value) => {
|
||||
if (!SecurityUtils.validateExecutablePath(value)) {
|
||||
|
||||
Reference in new issue
Block a user