ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Special User Sections > N.A.N.Y. 2018

NANY 2018 Release: BaseImage

<< < (2/4) > >>

BGM:
Thanks for trying it out!  For webpages, bear in mind that the encoded image is *very* long.  It increases the page size but you don't have to load an external file.  The best use of this, I think, is for using html email signatures.

skwire:
For webpages, bear in mind that the encoded image is *very* long.-BGM (December 31, 2017, 06:22 PM)
--- End quote ---

Yep.  I am fully aware of base64 encoding (email attachments, etc.) but never realised that they could be used in a webpage like that.  =]  Quite slick.

Tuxman:
The main advantage is probably one less request, resulting in resource optimization.  :)

Deozaan:
For an example of this out in the wild: The Lastpass extension uses a Base64-encoded image to inject their little asterisk symbol (or whatever their logo is these days) into form fields for their autofill stuff. :Thmbsup:

BGM:
Another place it is used - is by the Firefox Custom Buttons extension for the button icons - when you select an image for the icon, it base64 encodes it so it doesn't have to refer to a file location.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version