Decreasing the total size of images in the AnKing Step Deck

@AnKing-Maintainers,

We are in the process of optimizing images in the AnKing deck to decrease the overall file sizes of the images. This will accelerate download speeds and significantly cut hosting costs.

:exclamation: Note that this will only affect new subscribers or those who haven’t yet downloaded certain images from AnkiHub.

Before we make this change, we want your feedback on the new images to make sure that the image quality is up to par. You can view samples of the images here:
samples of AnKing media with reduced file size - GDrive

This folder contains the top 100 images for which the size reduction was the greatest. Images with the most significant reductions are ranked at the top, which is indicated by the prefixed number in the file names.

The folder also contains the original images to make it easy to compare original and processed images. Original images are indicated by their name ending in _original. You can also download a zip file containing most of the images from the AnKing deck here:
AnKing media with reduced file sizes - pCloud

Note that this doesn’t contain all images for the deck, just the ones that are in media-enabled fields. Recently added images are also not included. If you are interested, this is the approach we used in order to decrease the total file size of the images from about 4.3GB to 1.3GB:

  • Limit the dimensions of images to 1080x1080, with exceptions for detailed Pixorize images.
  • Convert the images to a different image format called webp, which allows for smaller image file sizes while maintaining good image quality. The quality setting used is 85/100.

Please let us know if you have any questions or concerns! We understand this is a big change and we want to make sure that the image quality is good enough before changing all of the images.

Thanks @jakub.f for your work on this!

Yeah I think these are good. I looked through the top 40 and could still read and see everything well. I would hope you would keep a backup of these images in case there comes along a better compression algorithm.

4 Likes

These look great on my end, tried looking through specifically at images with smaller text and if anything I could read them easier in the new images. Definitely looks like it’s worth the trade off in quality!

4 Likes

Looks great. I’m concerned for images that are already low in size, will their quality be affected significantly since they would be already low in quality?
Also you guys know better but still I wonder why we didn’t choose jpg format at the same settings? It has a bit lower compression ratio but keep the quality pretty good. Still everything is good on webP as well.

1 Like

Looks good!

What would this means for adding images to the deck moving forward? Do we have to convert to .webp if we have a .jpg file? Or will it do it automatically?

1 Like

For images that are originally of lower quality, the drop in quality is often less significant than for higher quality images. So far, we didn’t notice any problematic images yet.

We tried both options and had better results with webp in terms of file size reduction.

2 Likes

You don’t have to convert images when adding new images to the deck. For now we are just going to optimize the existing images.

In the future, we might convert them automatically, but we didn’t plan this out yet.

2 Likes

I’d be lying if I didnt see a difference but I think its fine

What about offering a high quality download option hosted on like google drive or something that they can download and import if they want?

1 Like

Im guessing its way more noticeable on the google drive because these images are blown up in size in proportionate to the screen. Most of these images are smaller on Anki when reviewing → appear as higher quality

2 Likes

Ye was thinking that