<img Src "data:image Png;base64,iVBORw0KGgoAAAA... ((HOT))
var canvas = document.createElement('canvas');var ctx = canvas.getContext("2d");Than let's prepare an empty Array to later store our base64 strings:
var parts = ;Now we need to create a new Image, assign an onload function and set it's src:
var img = new Image();img.onload = split_4;img.src = "data:image/png;base64,iVBORw0KGgoAAAA.......................etc"The split_4 function:
If the image we need to slice is 26080 means that we need to set our canvas element to 1/4 that size:
<img src "data:image png;base64,iVBORw0KGgoAAAA...