Mordent 0 Report post Posted July 26, 2009 Hey all! I'm looking for a way of creating images (preferably in PNG format, but it doesn't really matter) using PHP (and, I assume, some extension module). I'm certain that it can be done, and I even remember seeing a thread about it here before but I can't find the blasted thing now. Anyone care to point me towards such a module, and has anyone had any experience in generating images using PHP?In case you're wondering, I'm intending to use it to create a whole range of similar images, tokens if you will, that have some slight variation on them (i.e. worth, a different central image, different text) but essentially the same template, and rather than do a hundred of the things in Inkscape I figured I could find a way of automating the process based on, say, the contents of a MySQL database.Thanks in advance! Share this post Link to post Share on other sites
Phoenix.Illusion 0 Report post Posted July 26, 2009 Thats not possible, There is no way you can create an image in .PHP Share this post Link to post Share on other sites
BCD 1 Report post Posted July 26, 2009 Creating text images? Do you want to create text images for banners and layout buttons etc? I think thats a bad idea. Because, it needs lot of PHP processing to create the images every time the page loads. If the the layout is same, then it may be actually easier to edit the images in inkscape and change the text in the editor. Do you meant creating those images only one time and use those images on web page? Even then you won't get the quality you would get manually creating it.Anyway, you can create images in PHP using PHP GD Library. I havent tried it much yet, I am still learning. You can check out this link. It basically explains the basics of creating graphs, you can learn from it to create whatever you want. Share this post Link to post Share on other sites
truefusion 3 Report post Posted July 26, 2009 The PHP manual has these image processing modules available: http://us2.php.net/manual/en/refs.utilspec.image.phpOut of all of them, i've only used the GD library, and it was just to generate thumbnails for a gallery script of mine. Share this post Link to post Share on other sites
Mordent 0 Report post Posted July 27, 2009 Creating text images? Do you want to create text images for banners and layout buttons etc? I think thats a bad idea. Because, it needs lot of PHP processing to create the images every time the page loads. If the the layout is same, then it may be actually easier to edit the images in inkscape and change the text in the editor. Do you meant creating those images only one time and use those images on web page? Even then you won't get the quality you would get manually creating it. Anyway, you can create images in PHP using PHP GD Library. I havent tried it much yet, I am still learning. You can check out this link. It basically explains the basics of creating graphs, you can learn from it to create whatever you want. The image creation will be a one-off event. The images will not be used on a website. GD library certainly rings a bell, and the link tells me that what I want to do can be achieved. Thanks! The PHP manual has these image processing modules available: http://us2.php.net/manual/en/refs.utilspec.image.php Out of all of them, i've only used the GD library, and it was just to generate thumbnails for a gallery script of mine. Two people for GD library, then. That list of other modules is certainly interesting, but it seems GD is the simplest of the options, so I'll likely use it. Cheers!Thats not possible, There is no way you can create an image in .PHPIgnorance is bliss. Share this post Link to post Share on other sites