shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.45k stars 173 forks source link

Integrate a svg to png/jpg converter (no additional ImageMagick required) #1901

Open kirchsth opened 9 months ago

kirchsth commented 9 months ago

Related problem

I tried to export my markdown (with plantuml) to a GitLab compatible markdown file but got the error

Error: imagemagick-cli failure
Error: Failed to call 'convert XXXXX.svg ....\assets\XXXXX.png' ....

In https://github.com/shd101wyy/vscode-markdown-preview-enhanced/issues/991 I found a solution that I have to install ImageMagick (based on its own page A minimum of 512 MB of RAM is recommended, but the more RAM the better)

Solution I'd like

Default setting is that the svg image is converted via an internal used conversion library (e.g. like svg2img; but I'm not a TS developer) and no additional tool is required anymore. And only if the user wants more features he could select the external tool ImageMagick.

Describe alternatives you've considered

Additional context

albort123 commented 5 months ago

Transform Your Images Instantly: Experience Lightning-Fast PNG to JPG Conversion with Our Premium Tool

https://ovdss.com/apps/png-to-jpg-converter