External CSS content syncs only if Synchronize audio and images too option is checked

Hello!
I’ve a css file imported in the Styling tab of different cards using @import url("_anki.css");.
I’ve verified that the content of the file is synced between my devices only if the Synchronize audio and images too checkbox is checked.
Are the css files considered audio and images?

These are the steps I tried:

  1. Sync between two devices a .css file with some content
  2. From device 1, change the content of the .css file, uncheck the option Synchronize audio and images and sync
  3. Sync on the device 2 and verify that the file didn’t change
  4. Repeat the sync from the device 1, now with the option checked
  5. Sync on device 2 and verify that the css file content changed accordingly

Anki version: 24.06.3 (d678e393)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

Let me know if it can be considered a bug, or if I missing something.
Thanks!

In my understanding, “audio and images” can mean “any file in collection.media”. The docs say media instead of just audio and images.

1 Like

For convenience this is the link to the docs.

Am I wrong or it’s a strange phrasing “Synchronize audio and images too” to say, basically, “Enable media synchronization”. I’ll open a PR asap it that’s the case.

Aside that, is there a way to filter the type of file to upload to the anki web server? Images and sound are exactly the type of files I would exclude.
Thanks!

No, everything in your collection.media syncs to AnkiWeb and your other devices. It’s not a place to store files that your collection doesn’t need. You can run Tools > Check Media to clear out any unused files, so that you’ll stop syncing those.

Sadly, no. There is no such feature but you can make a post under Suggestions category.

I was mainly mindfull about the space occupied by the collection and by the time needed to sync, since I switch often to new devices (some of which has very low specs).
Thanks.

1 Like

I’ll do it asap.
Thanks!

If you don’t sync the attached media to the device, your cards won’t work/display correctly.

The wording is targeted at the average user, who may not realise that “media” refers to sounds and images. If we change the wording, it should still be clear to them (and hopefully, not too verbose).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.