Commandline PHP display to screen
Posted: 2008-04-20T12:39:15-07:00
I'm trying to create/aulter an image in PHP and have it appear on the screen without creating a file on my server. ATM i can use a commandline string to produce an png file so i know imagemagick is working and that somthing can be produced.
My code for this is:
I thought changing the last gel_shape.png to x: it would work but it han't. Any help?
btw i got the inital code from a tutorial site but they didnt cover this
My code for this is:
Code: Select all
exec("/usr/bin/convert -size 100×60 xc:none -fill red -draw 'circle 25,30 10,30' \
-draw 'circle 75,30 90,30' -draw 'rectangle 25,15 75,45' gel_shape.png");
btw i got the inital code from a tutorial site but they didnt cover this