Can you combine these 2 images into one external file on this JS fiddle and link to them as images?
Something like
It is not possible in pure HTML within the data URI specification. (http://en.wikipedia.org/wiki/Data_URI_scheme)
It is possible to use JavaScript to grab only a substring of the base64 data/document and set that as the img's src attribute, as the linked answer proposes.
I'm just not sure that it's worth the trouble to do it this way, it seems rather complicated for maybe a very small gain in loading time.
if you want to use it, one way to do it could be this (simple draft, no error handling, no fancy functions): in your HTML document:
<script type="text/javascript" src="base64file.js" />
....
<img id="image0" src="" />
....
<img id="image1" src="" />
....
<script type="text/javascript">
var singleImages = allImages.split('$');
document.getElementById('image0').src = 'data:image/png;base64,' + singleImages[0];
document.getElementById('image1').src = 'data:image/png;base64,' + singleImages[1];
....
</script>
in your base64file.js:
allImages = 'abc... <- the base64 code for the first image
$ <- split indicator that is not a part of the base64 character set
cba.... <- the base64 code for the second image
';
I've a simple answer.
var data64imgs = ['data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAgKUlEQVR4Xs2bd5Dd1ZXnP7/0cup+nZNyKwESIgtEEMEimGCwmcJjHBdYY2N7WM84j70zW1t2OQ/lNTYe22QbI4NYk8HIgIQEylmtVuegzv3y+8U9rvsHKjDrMMDMrTp1X/1+enp9vifec84lCALe6TV//ny+9rWvRa6++ur5H//4x8/58pe/fN369es//t3vfvdTX/3qVz/z2GOP3fzNb37zhk9+8pMXfehDH1p21llnpRcvXsy7sUzeodXW1maedtppJ69evfr8jo6Os+fNm7f8xhtvbI3H41Hf9wkCn7PPXo2u61SrVU4++WTkM46sycnJ8dHR0SOytuzcufOFzZs3vyKfp+QVb/fSRAPQNI23Y0UiEdasWbP8sssu+7szzjjjagHhhHA4jG1XGB8f59ixY4yOHmNiYop8Pi+M2wQBhMMhkskE2WwNjY31Qo3yuY5YLI6AhXxn6NChQ89s2LDh/hdeeOG5kZER/7+UBsRiMa688so111133WdOOumkK1KpVHh6eppXX93K1q2vsmPHXrq6BgSEHIWC/0YZKEJH103i8RANDSkWLGhm5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smq4uZVuVx3OMrfpXu+Vb+3O8eV/Fn/vN/BRgA4OLnz6M73ksAAAAASUVORK5CYII='];
$(function () {
$('[data-index]').each(function () {
$(this).attr("src",data64imgs[parseInt($(this).data("index"))]);
});
});
Paste the above code in a separate JS file and reference it where you need it.
Do this:
<img data-index="0" />
<img data-index="1" />
Now automatically, the images will show up.
Here's the Demo
Note if you want additional imgs, then add it to the array and that's it , just use appropriate index.
It is possible to put all resources (JavaScript, CSS, fonts, images) together in one big (cacheable) JavaScript file. The file will look messy (because of some lengthy CSS and Base64 strings), but don't let that put you off; you can use code generation to compile the JavaScript file from its separate components (see below).
Demo: http://jsfiddle.net/PgdXd/
Put your entire stylesheet in a single string literal (do not forget to escape quotes and line breaks) and embed that inside a JavaScript statement that dynamically creates a style
element.
$('head').append("<style> ......... </style>");
Note: I am using jQuery here, but plain JavaScript will do just as well.
The statement above may have no effect in older web browser versions. For alternatives, see: How to dynamically create CSS class in JavaScript and apply?
Embed your Base64-encoded font files inside your stylesheet, as explained here: http://sosweetcreative.com/2613/font-face-and-base64-data-uri
@font-face {
font-family: 'latoregular';
src: url(data:application/x-font-woff;charset=utf-8;base64,........) format('woff');
font-weight: normal;
font-style: normal;
}
As shown earlier, this should be embedded within the JavaScript statement that holds your stylesheet:
$('head').append("<style> @font-face { font-family:'latoregular'; src: url(data:application/x-font-woff;charset=utf-8;base64,........) format('woff'); font-weight:normal; font-style:normal; } .... </style>");
There are two flavors. Background images can be specified in the stylesheet, just like we did with fonts:
.logo1 { background-image: url(data:image/png;base64,.......); }
The second flavor are regular images. In the HTML file, use img
tags with an empty src
attribute.
<img alt="" src="" class="icon1" />
Use javascript to populate the src
attribute. The entire Base64 string is a string literal embedded inside the JavaScript statement.
$('.icon1').attr('src', 'data:image/png;base64,.......');
$('.icon2').attr('src', 'data:image/png;base64,.......');
The CSS class determines which data belongs in which img
tag(s). It is alright for a certain class to be unused in one or more HTML pages that will be including this JavaScript file. The Base64 string just gets passed around a bit; the same negligible overhead is involved in other JavaScript-based approaches.
Here's a simple example using bash scripts. But feel free to use Perl or T4 or whatever language or tool you like instead.
gendatauri.sh: outputs a data URI; parameters are filename and (optionally) MIME type.
#!/bin/bash
echo "data:${2:-$(file -bi $1)};base64,$(base64 -w0 $1)"
genimgsrc.sh: generates the jQuery statement to populate the src
attribute of <img>
elements; parameter is filename.
#!/bin/bash
filename=$1
basename=${filename##*/}
classname=${basename%.*}
echo "\$('.$classname').attr('src','$(./gendatauri.sh $filename)');"
gencss.sh: your stylesheet; use $(./gendatauri.sh FILENAME [MIMETYPE])
to inject file data. Example:
#!/bin/bash
cat << EOF
@font-face {
font-family: 'latoregular';
src: url($(./gendatauri.sh latoregular.woff "application/x-font-woff;charset=utf-8")) format('woff');
font-weight: normal;
font-style: normal;
}
.logo1 {
background-image: url($(./gendatauri.sh icon1.png));
}
EOF
genjs.sh: combines all the different components into a single JavaScript file. Example:
#!/bin/bash
# CSS, including fonts and background images
(
echo '$("head").append("<style>\n'
./gencss.sh
echo '\n</style>");'
) | tr '\n' ' '
echo
# images
./genimgsrc.sh icon1.png
./genimgsrc.sh icon2.png
# JavaScript
cat YourOwnFunctions.js
Run it and redirect its output to generate the final JavaScript file. Make sure the .png
, .woff
and other resource files are present when you do.
./genjs.sh > GeneratedJavaScriptFile.js
Included the JavaScript file in each HTML file:
<script src="GeneratedJavaScriptFile.js"></script>
Just for clarity: on the web server, you only need GeneratedJavaScriptFile.js
and the .html
files; the original resource files do not need to be present there.
Data-uris, which is the key here, are strings more often than not encoded as base-64.
As they are strings you can concatenate them as any other string. However, you cannot set a concatenated (data-uri) string directly as image source.
When concatenating you need to use a separator character so you can split them at arrival before setting them as image sources.
You could have the following strings as base-64 encoded data-uris:
var img1 = 'data:...',
img2 = 'data:...';
A concatenated version could look like this with for example $
as a separator char:
var conc = img1 + '$' + img2;
This string can now be sent over the net containing the two data-uris combined.
To split them again at arrival from server:
var conc = getDataString(); /// some function to get the string from server
var images = conc.split('$'); /// split the string on the $ char
var img1 = images[0]; /// first index contains first string etc.
var img2 = images[1];
/// set the image sources
document.getElementById('image1').src = img1;
document.getElementById('image2').src = img2;
This of course will require error checking and validation and so forth, but for the principle this is one way of doing this.
Note that you cannot automatically split them simply by referencing them as a link. The server could of course parse the link and provide the single data-uri needed - just as what would be typical to do. But if you want, as I understood your question, to get a single string from server representing two (or more) images then you need to manually split them at client side.
Note 2: base-64 encoded images are 33% larger than an original binary image + the data-uri header needed for the browser to be able to use it as source. The question is probably if there is any gain doing it this way or if the total cost of an extra request to server retrieving binary data would be less in total due to the base64 overhead. Just my 2 cents..
Hope this helps (and that I didn't misunderstood your question entirely).
Use an image array. This requires no javascript, only HTML and CSS.
First, use a graphics editor (e.g. GIMP) to stitch your pictures together into one single big picture.
Then use CSS attributes (width
, height
, background-position
) to crop the image on the fly. <img>
does not support this, but background images do.
.iconarray
{
display: block;
background-image: url(iconarray.png);
background-repeat: no-repeat;
}
.icon1
{
width: 64px;
height: 64px;
background-position: 0px 0px;
}
.icon2
{
width: 64px;
height: 64px;
background-position: 0px -64px;
}
Use the CSS classes in a <span>
:
<span class="iconarray icon1"></span>
<span class="iconarray icon2"></span>
Demo: http://jsfiddle.net/rFTpL/
Kudos go to:
Put each base64-encoded picture in a file of its own, then use server-side code to insert the base-64 data inside the HTML page. The server will see three separate files, but the client (i.e. the web browser) is served one big file. Now you only have one big HTTP request for the HTML page together with the two pictures. If necessary, use mod_rewrite to make the web browser believe that it is a static cacheable HTML page rather than a server-side PHP/Perl/whatever page.
Simple PHP example (tested on Ubuntu 12.04):
<img src="data:image/png;base64,<?php readfile("image1.base64.txt"); ?>" />
<img src="data:image/png;base64,<?php readfile("image2.base64.txt"); ?>" />
Note: make sure the base64 files do not have a newline character at the end.