xRyul / obsidian-image-converter

⚡️ Convert and compress images from one format to another by drag'n'dropping or pasting files into the note.
MIT License
156 stars 16 forks source link

[FEATURE REQUEST]: Converting, compressing and resizing all existing images in vault #7

Open materemias opened 1 year ago

materemias commented 1 year ago

Could you add a functionality to do that?

xRyul commented 1 year ago

hey, thanks for checking out the plugin. I will look into it.

Although, if you only want to reduce file size and if you have a lot of images to process at once: e.g: 500+ spread out across multiple formats (psd, tif, jpg, jpeg, heic, gif etc.) I would better use something like "XnConvert", as it will be able to use all available cores and will be much faster.

materemias commented 1 year ago

thanks for looking into this, the difference is that md references would not get updated if I converted between file formats.

xRyul commented 1 year ago

Will try to release it in the next couple of days:

A few things to consider:

https://github.com/xRyul/obsidian-image-converter/assets/47340038/53d81316-e5d3-4669-8c4f-8bed03dd924f

tylerjames commented 11 months ago

Just tried this Process all vault image feature and it worked great and was pretty quick (my vault is not huge)

It definitely made my canvases much snappier when scrolling. Well done

Sinled commented 7 months ago

Hi, is there any means to spead up conversion? I was trying to convert images (on m1 max mac) in a whole vault but it will take several months to convert ~6k images )

I see somewhere between 180 to 200 second for 1 image conversion, but when i am using cwebp converter with similar settions it takes 0.5 - 1 second per image