Copy an resized uploaded Image on the server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Giordano

    Copy an resized uploaded Image on the server

    I was playing with GD library and after having found a script to resize
    an image the question is, how to overwrite it? At the moment I'm playng
    with an image already on the server but my intention is to resize an
    uploaded one.

    I tried with:

    imagejpeg($thum b); // it works

    copy($thumb, "resutl.jpg ");// in this case it has a new name so it is
    not an overwriting but it doesn't anyway.

    unlink($thumb);


    Thanx all, chr
    --
    _______________ _______________ _______________ _______________ _______
    { Christian Giordano's site and blog @ http://cgws.nuthinking.com }
  • Andy Hassall

    #2
    Re: Copy an resized uploaded Image on the server

    On Fri, 4 Feb 2005 16:57:36 +0000 (UTC), Christian Giordano
    <ur_mother_like s_spam@yes_she_ likes_it.com> wrote:
    [color=blue]
    >I was playing with GD library and after having found a script to resize
    >an image the question is, how to overwrite it? At the moment I'm playng
    >with an image already on the server but my intention is to resize an
    >uploaded one.
    >
    >I tried with:
    >
    >imagejpeg($thu mb); // it works
    >
    >copy($thumb, "resutl.jpg ");// in this case it has a new name so it is
    >not an overwriting but it doesn't anyway.
    >
    >unlink($thumb) ;[/color]

    Use the $filename argument of imagejpeg() to write it over the original
    filename.

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Christian Giordano

      #3
      Re: Copy an resized uploaded Image on the server

      > Use the $filename argument of imagejpeg() to write it over the original[color=blue]
      > filename.[/color]

      Since I don't need to visualize the image now it seems works properly...
      thx to everyone!

      chr


      --
      _______________ _______________ _______________ _______________ _______
      { Christian Giordano's site and blog @ http://cgws.nuthinking.com }

      Comment

      Working...