imagecopyresampled() arguments

This is a discussion on imagecopyresampled() arguments within the PHP Language forums, part of the PHP Programming Forums category; hi all, I have a quesion regarding the source and destination images in the imagecopyresample function (GD Library). It takes ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2003
Stijn Goris
 
Posts: n/a
Default imagecopyresampled() arguments

hi all,

I have a quesion regarding the source and destination images in the
imagecopyresample function (GD Library). It takes a source file as argument
but can I define where the source file is placed. Or is this file already
stored on the server? if so, is there a way I can define the destination
where is is placed?

How can I define the name and destination of the destination file?

kind regards
Stijn


Reply With Quote
  #2 (permalink)  
Old 09-10-2003
RG
 
Posts: n/a
Default Re: imagecopyresampled() arguments

copy() the temp file to a temp directory.
RG

"Stijn Goris" <mepisto@hotmail.com> wrote in message
news:3f5ef0c4$0$13893$ba620e4c@reader0.news.skynet .be...
> hi all,
>
> I have a quesion regarding the source and destination images in the
> imagecopyresample function (GD Library). It takes a source file as

argument
> but can I define where the source file is placed. Or is this file already
> stored on the server? if so, is there a way I can define the destination
> where is is placed?
>
> How can I define the name and destination of the destination file?
>
> kind regards
> Stijn
>
>



Reply With Quote
  #3 (permalink)  
Old 09-10-2003
Stijn Goris
 
Posts: n/a
Default Re: imagecopyresampled() arguments

So if I get it right I first have to copy the fie to the server (from client
to server) with say move_uploaded_file() and then resize the file on the
server with the imagecopyresample() function?

regards

"RG" <Me@NotTellingYa.com> wrote in message
news:3f5efeef$0$33798$65c69314@mercury.nildram.net ...
> copy() the temp file to a temp directory.
> RG
>
> "Stijn Goris" <mepisto@hotmail.com> wrote in message
> news:3f5ef0c4$0$13893$ba620e4c@reader0.news.skynet .be...
> > hi all,
> >
> > I have a quesion regarding the source and destination images in the
> > imagecopyresample function (GD Library). It takes a source file as

> argument
> > but can I define where the source file is placed. Or is this file

already
> > stored on the server? if so, is there a way I can define the destination
> > where is is placed?
> >
> > How can I define the name and destination of the destination file?
> >
> > kind regards
> > Stijn
> >
> >

>
>



Reply With Quote
  #4 (permalink)  
Old 09-10-2003
Randell D.
 
Posts: n/a
Default Re: imagecopyresampled() arguments


"Stijn Goris" <mepisto@hotmail.com> wrote in message
news:3f5f09d1$0$9566$ba620e4c@reader1.news.skynet. be...
> So if I get it right I first have to copy the fie to the server (from

client
> to server) with say move_uploaded_file() and then resize the file on the
> server with the imagecopyresample() function?
>
> regards
>
> "RG" <Me@NotTellingYa.com> wrote in message
> news:3f5efeef$0$33798$65c69314@mercury.nildram.net ...
> > copy() the temp file to a temp directory.
> > RG
> >
> > "Stijn Goris" <mepisto@hotmail.com> wrote in message
> > news:3f5ef0c4$0$13893$ba620e4c@reader0.news.skynet .be...
> > > hi all,
> > >
> > > I have a quesion regarding the source and destination images in the
> > > imagecopyresample function (GD Library). It takes a source file as

> > argument
> > > but can I define where the source file is placed. Or is this file

> already
> > > stored on the server? if so, is there a way I can define the

destination
> > > where is is placed?
> > >
> > > How can I define the name and destination of the destination file?
> > >
> > > kind regards
> > > Stijn
> > >
> > >

> >
> >

>
>


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?

PHP is a server-side language - You have to have the image on the server to
manipulate it - PHP has no access to the filesystem on the client.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0