image64 image64 snippet for MODX Revolution
image64

image64 Guide

With this snippet you will have the ability to convert any specified image to a base64 encoding.

PROPERTIES
&path — string (req)
path to the file to give timestamp. Use trailing slash
&file — string (req)
filename of the document you wish to use

EXAMPLE
Give a file with a &path of `downloads/` and a &file name of `MyPackage.zip` With the &name of `My Package` and supports resume download while showing the hit count.
<link href="[[!lastModified?
   &path=`css/`
   &file='style.css'
]]" rel="stylesheet" type="text/css" >
Output:
<link href="css/style.css?1477050530"
rel="stylesheet" type="text/css" />