Anki-Addons icon indicating copy to clipboard operation
Anki-Addons copied to clipboard

Image Resizer - work on old files

Open YuvalMilo opened this issue 6 years ago • 2 comments

Hey there.

First of all, Thank you for so much for this awesome add on!

Seconds, I have more than 10,000 cards I have imported. Some of the contain some picture. Is there a way to use "Image Resizer" to resize all of these already uploaded cards? I think a feature like that would really help a lot of ppl :)

I have tried to modify your code but failed...

p.s I think it would have been great if there was some way to resize Latex code that was automatically compiled to a PNG file so that it doesn't get blurry.

thanks, 007noob007

YuvalMilo avatar Mar 19 '18 14:03 YuvalMilo

Hi 007noob007,

About your first requirement, you can resize previous images manually. Open Anki, Tools -> Add-ons -> Open Add-ons Folder...

screenshot at 2018-03-19 22-41-56

After opening the folder, go up, there's a folder called User 1,open it, and you will see folder collection.media

screenshot at 2018-03-19 22-44-28

Open collection.media, you will find all of your images in it. What you need to do is just using another software to do bunch resizing. A lot of softwares are able to do it. The reason why I didn't add this functionality into ImageResizer was twofold.

  1. I don't have enough time recently.
  2. It's actually pretty dangerous to do it, because if you do it in the wrong way, you lose all of your previous images. So you'd better back up your images before scaling.

About your second requirement, I don't use Latex, so I don't know what you meant, maybe you can give me an example. :)

I'm pretty busy these days, so if you can modify the code to achieve the missing functionalities, I'd be happy to merge them into my code and upload them to AnkiWeb, so it can benefit more people.

Regards, Searene

searene avatar Mar 19 '18 15:03 searene

Searene's advice above is spot on. I was able to batch resize images using Irfanview quite easily.

hlinee avatar May 26 '19 15:05 hlinee