Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created January 5, 2015 10:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bastianallgeier/fd735d47b3e212c8a20e to your computer and use it in GitHub Desktop.
Save bastianallgeier/fd735d47b3e212c8a20e to your computer and use it in GitHub Desktop.
You can create a dataURI for all your images and other files in Kirby's templates, snippets or plugins. This is super useful for inline CSS for example.
<?php echo $page->image('someimage.jpg')->dataURI() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment