When the user has uploaded an image I want to add text to it,
if the image then is larger than 100kB I want to resize it to 100kB,
then I want to create a thumbnail that is 50pxl high.
Now I'm using this code for uploading an image;
if ($pic1!="" AND $pic1!="none")
{
if( $pic1_size > 102400 ) error( "pic1 is too big (max 100kš." );
if( $pic1_type == "image/pjpeg" || $pic1_type == "image/jpeg" || $pic1_type == "image/gif" )
{
copy( $pic1, "webpics/$picnr-1.bild" );
unlink( $pic1 );
}
else
{
error ("Syntax error.");
}
}
So the next step would be to add text, how do I do that?
Links to tutorials that make all my wishes come true is much-appreciated.