resizing a file that has been uploaded

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • googlegroups@paul13.com

    resizing a file that has been uploaded

    I am using a standard form to upload a file, but I want to resize it
    before I store it.

    I have this part

    move_uploaded_f ile($_FILES['picture_name']['tmp_name'],
    'images/foo.jpeg');

    I do not know what to put for $source_jpeg in...
    imagecopyresamp led($image_dest , $source_jpeg, 0, 0, 0, 0, $new_width,
    $new_height, $width_orig, $height_orig);

    Thanks

  • Alvaro G. Vicario

    #2
    Re: resizing a file that has been uploaded

    *** googlegroups@pa ul13.com escribió/wrote (19 Mar 2005 23:14:03 -0800):
    [color=blue]
    > I am using a standard form to upload a file, but I want to resize it
    > before I store it.
    >
    > I have this part
    >
    > move_uploaded_f ile($_FILES['picture_name']['tmp_name'],
    > 'images/foo.jpeg');
    >
    > I do not know what to put for $source_jpeg in...
    > imagecopyresamp led($image_dest , $source_jpeg, 0, 0, 0, 0, $new_width,
    > $new_height, $width_orig, $height_orig);[/color]



    Check example 1.

    --
    -+ Álvaro G. Vicario - Burgos, Spain
    +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
    ++ No envíes tu dudas a mi correo, publícalas en el grupo
    -+ Do not send me your questions, post them to the group
    --

    Comment

    Working...