i'm creating a web application to generate images according to user's input, more precisely a barcode generator. i'm using javascript to process the data input by user. In the end, i want to have my output barcode as an jpg or png. What other tools do i need? I know that javascript cannot create the .jpg or .png file for me. What other tools can help me generate an image file?
i'm creating a web application to generate images according to user's input, more precisely a barcode generator. i'm using javascript to process the data input by user. In the end, i want to have my output barcode as an jpg or png. What other tools do i need? I know that javascript cannot create the .jpg or .png file for me. What other tools can help me generate an image file?
Share Improve this question asked Jan 6, 2012 at 9:02 n0obiscuitzn0obiscuitz 5733 gold badges10 silver badges22 bronze badges 2- Pretty much any server side language. Are you using php, or something else? – Adam Hopkinson Commented Jan 6, 2012 at 9:04
- i'm thinking about java or php. – n0obiscuitz Commented Jan 11, 2012 at 6:57
3 Answers
Reset to default 1Its possible using Canvas element in HTML5 http://blog.nihilogic.dk/2008/04/saving-canvas-data-to-image-file.html
I dont know i there any free script is out there but you can try this one: http://www.java4less./barcodesjavascript/barcodesjavascript.php?info=intro
Hope its help, Karls
I have created previews of user driveways after pavement using PHP GD with a picture submitted by the user.
It's done with PHP so you would POST the data to a PHP script on the server side and create the image from there.
I went as far as having the user click and make a path of the section to remove (the old driveway) and use that to cut out the driveway and replace it with a background layer.
You can set up PHP locally with Apache or IIS. PHP is pretty much standard on all hosting services.
You could build an image editor with it.
https://www.php/manual/en/book.image.php