473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Jul 16 '05 #1
3 3471
RG
copy() the temp file to a temp directory.
RG

"Stijn Goris" <me*****@hotmail.com> wrote in message
news:3f***********************@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

Jul 16 '05 #2
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:3f***********************@mercury.nildram.net ...
copy() the temp file to a temp directory.
RG

"Stijn Goris" <me*****@hotmail.com> wrote in message
news:3f***********************@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


Jul 16 '05 #3

"Stijn Goris" <me*****@hotmail.com> wrote in message
news:3f**********************@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:3f***********************@mercury.nildram.net ...
copy() the temp file to a temp directory.
RG

"Stijn Goris" <me*****@hotmail.com> wrote in message
news:3f***********************@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.
Jul 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stijn Goris | last post by:
hi all, I 'm trying to resize an image if it is to big. After the user uploads (with move_uploaded_file()) an image, it is checked for its resolution. If the image is to big it will be resized...
1
by: bob4roxio | last post by:
Is there any better quality method for creating resized images? I'm using imagecreatetruecolor and imagecopyresampled and making sure my imagejpeg quality is set at 100 but the client I'm writing...
9
by: Chuck Anderson | last post by:
I have a function with 7 inputs. The last three have default values. I want to call that function specifying the first four, skip two and then specify the last. I thought I could write this...
6
by: ralphNOSPAM | last post by:
When I execute this script, nothing displays on my browser. I'm trying to verify my image is being reduced by 50% before I try to write it to a file: // The file $filename =...
41
by: Telmo Costa | last post by:
Hi. I have the following code: -------------------------------------- function Tunnel() { //arguments(???); } function Sum() { var sum = 0; for (i=0; i<arguments.length; i++) sum +=...
1
by: lawrence k | last post by:
I'm looking at this page: http://us2.php.net/manual/en/function.imagecopyresampled.php I took the code from Example 2, almost exactly, and tried to use them on this page: ...
7
by: sfeher | last post by:
Hi All, Is there a way to preserve the arguments across functions? I have: <script> function myFirstFunction() { // arguments = 'param1'
36
by: Pacific Fox | last post by:
Hi all, haven't posted to this group before, but got an issue I can't work out... and hoping to get some help here ;-) I've got a base object that works fine with named arguments when called...
3
by: Bint | last post by:
Hello, I'm trying to create thumbnails of PNG images. I have code that used to work but doesn't seem to anymore. The resizing just seems to return black images, even though my source image is...
2
ADezii
by: ADezii | last post by:
When a call is made to a Sub or Function Procedure, you can supply Arguments in the exact order they appear in the Procedure's definition, or you can supply them in any position by name. To...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.