I think your problem may be referring to file size.
django.conf.settings.COMPRESS_DATA_URI_MAX_SIZE
Only files that are smaller than this in bytes value will be embedded.
By default COMPRESS_DATA_URI_MAX_SIZE
is set to 1024 bytes.
So you need to increase this value to allow the file to be encoded.