Asked 7 years ago
24 Nov 2016
Views 2439
duglus

duglus posted

how to convert fabric js canvas json to direct image with php

let me explain why i need it .
by method toDataUrl i got string with data type and format followed by base64 encoded image data and it very heavy in size . its about 8 MB because canvas have images of resolution ~9000x9000 and up

by using toDataUrl and post string which is 8 mb in size by ajax . it take about 2 to 3 minute wait . which is not reliable and user friendly so i need some other way where i cut this time by posting . so i am thinking if i do it in server side in cron . for that i need some php program which convert fabric js json to Image
Phpworker

Phpworker
answered Nov 30 '-1 00:00

get the image by toSVG of the canvas client-side in svg
toSVG has fonts kerning and other issue thats why i dont want to use it - duglus  
Nov 24 '16 04:49
Post Answer