I have this
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOcAAABnCAYAAAD7RFX4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFP
With jQuery:
var width, height; $('').load(function(){ width = $(this).width(); height = $(this).height(); // Call whatever function here that requires the width/height }).attr('src', datauri)