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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 > > |
|
|||
|
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 > > > > > > |
|
|||
|
"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. |