Code shorten for Base 64 Image Code

Hello Everyone,

Recently after google’s massive updates i required to convert the Images to Base 64 for source code, now in my website I think there are more then average of 50 images and code for Image in Base 64 format is quit long to view your coding in development process so what would be best possible way to convert image to Base 64 Format and code is of 2-3 lines max only?

Thank you.

#Base64ImageCode html

Why? Is that to reduce the number of requests?

They are as big as they are. You could put them on a single long line.

To tidy up the view in development you could do what I often do with in-line SVGs, I keep them as a separate file and insert them into the html where required as PHP includes. This makes the html much tidier while retaining the advantages of in-lining them. It also has the advantage of separating the files so they can be edited and reused independently of the html file.

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