I have a WYSIWYG Editor where a user can enter all the Text, make it bold, italic, change fonts etc.
What i want to do is, convert the HTML entered into WYSIWYG Editor to JPG.
Is it possible ? Any code ?
I have a WYSIWYG Editor where a user can enter all the Text, make it bold, italic, change fonts etc.
What i want to do is, convert the HTML entered into WYSIWYG Editor to JPG.
Is it possible ? Any code ?
Yes it is possible..
You will need to create a php script that will just simply output that HTML nothing else eg. html.php?pageid={Dynamic ID }
Then you will need to download the wkhtmltoimage
After you download it set its path in the environment variables
Afterwards you will simply need to use this code to convert it to a image
exec("wkhtmltoimage html.php?pageid=323 teset.jpg");
If you have any other queries let me know :)
Sure, you can integrate SWFUpload into it and pass the image tag inside the editor div.
SWFUpload is good because it is cross-browser. It first chooses Flash, then decides if it needs to fall back to javascript or even a basic form.