CodeIgniter Forums
saving an image from a page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: saving an image from a page (/showthread.php?tid=54120)



saving an image from a page - El Forum - 08-23-2012

[eluser]brian88[/eluser]
I am making an artwork tool where users can select clip art and fonts and place them on a product with jQuery and Codeigniter. Basically it's just a bunch of layers of images placed on top of each other.

After the user is done creating their project, is their a way to save this final image as a jpg?


saving an image from a page - El Forum - 08-23-2012

[eluser]CroNiX[/eluser]
Yes, but it would take a LOT of work, and probably not turn out all that hot (compared to doing the same thing in photoshop).

Off the top of my head you'd probably have to use javascript to get the image locations in relation to each other (assuming they aren't all 100% aligned to each other or the same size) along with their stacking order, and then pass that info to a custom image processing script that will turn the jpgs into pngs with alpha channel, align them how they were, stack them in order and create a final image from that. You have your work cut out for you.



saving an image from a page - El Forum - 08-23-2012

[eluser]Aken[/eluser]
It's definitely doable, but as CroNIX said, it's not a quick project. I'd recommend making sure you have ImageMagick available on your server & PHP install if you want to do this - I've used it for doing very similar things and it made my life easier.