GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
It would be useful to include a file size limit, such that a data URI is not generated if a referenced file in the CSS is larger than a given size.
Probably also a good idea to add a warning in verbose mode when a data URI is longer than 32 KB because IE8 will ignore it.
I'd support this, I had to disable embedded stylesheets for IE8 as a result of this issue
The code is already written for this:
The 2nd half of this request is addressed in v0.3.4
If you don´t won´t to support IEs (f.e. on a mobile website) it would be nice if this feature is controllable via a parameter.
maxfilesize = 1 (default)
maxfilesize = 0 (images are converted regardless the filesize)
Coming back around to this. I'd like to support this request.
"if the encoded image ends up being over 10k, keep the image link."
I may be able to code it even. I'll see when I get some time.
I think there are actually two possible useful options:
I tackled the URI length limit here: #20
Cool, I'll take a look this weekend, thanks!
Sorry, the weekend got away from me. I'll look at this as soon as I can!