obsidian-image-converter icon indicating copy to clipboard operation
obsidian-image-converter copied to clipboard

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

Open materemias opened this issue 2 years ago • 5 comments

Could you add a functionality to do that?

materemias avatar Sep 15 '23 05:09 materemias

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.

xRyul avatar Sep 30 '23 22:09 xRyul

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

materemias avatar Oct 10 '23 15:10 materemias

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

  • Ability to convert, compress and resize all internal images in current note

    image

    image

  • Ability to convert, compress and resize images across all Vault

A few things to consider:

  • This does not download externally embedded images.
  • Currently, for safety reasons, it does not support selecting the Output location.

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

xRyul avatar Oct 11 '23 08:10 xRyul

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

tylerjames avatar Nov 13 '23 15:11 tylerjames

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

Sinled avatar Mar 14 '24 10:03 Sinled