CustomCSSforFx icon indicating copy to clipboard operation
CustomCSSforFx copied to clipboard

Conver images to base64, can be ?

Open Mitezuss opened this issue 4 years ago • 3 comments

Just asking about the images.

With images coded to base64 (added to the CSS) can be more portable.

Regards

Mitezuss avatar Dec 15 '21 06:12 Mitezuss

It is possible. Just tested with a few images.

Aris-t2 avatar Dec 16 '21 14:12 Aris-t2

@Aris-t2

can do you implement (base64) on your versions ?

or maybe is worse performance ?

Mitezuss avatar Jan 12 '22 16:01 Mitezuss

I don't think it will have a noticeable effect on performance, although the size of the text, when inside a files, is slightly larger than the png/svg.

Aris-t2 avatar Jan 13 '22 15:01 Aris-t2

I actually think loading and decoding data-URI and afterwards saving the decoded result in the RAM takes more of performance than just simply reading a file, and so I prefer it the latter way if possible.

It may be not much performance for modern computers, though.

BTW @Aris-t2 can you fix the typo in the title? Conver to Convert.

Speravir avatar Dec 19 '22 21:12 Speravir