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
111 stars 11 forks source link

Adding the option to skip already processed images when processing the whole vault #48

Open KaiReichart opened 3 months ago

KaiReichart commented 3 months ago

This PR adds the option to skip all images, which already are in the target format.
This is especially useful if you have a very large vault with many images, and converting them all takes hours. Then you can use this option to skip any already processed images, and don't have to start from 0 if for whatever reason the process gets stopped.

Additionally, I moved the log statement to the beginning of the function, I had the problem where the image processing threw an error and the log line did not get called anymore, so I was not able to see which image caused the problem.

Also, it seems like the dependency to probe-image-size was missing, so I added that as well.

Screenshot 2024-01-26 at 17 39 53
jjjpanda commented 2 months ago

this is a good feature, it also prevents repeated compression of the same images through the "Process all vault images" command. @xRyul please consider releasing this

Pil0tXia commented 5 days ago

I'm really looking forward to this feature, @xRyul please consider merging this PR, thanks a lot!