exif_imagetype() is new function only available in PHP 4.2 (not released
yet) and above. Use GetImageSize() for now.
-Rasmus
On Sat, 30 Mar 2002, Dale Lora Marshall wrote:
Ok, I've been looking at the image functions, and found that I needed
to recompile PHP with exif support and load GD
On Tue, 26 Mar 2002, Fabio Spinelli wrote:
Hi all, I'm writing a script that generate invoices in a PNG files.
My problem is that I have to write the numbers aligned to the right.
I'm using the funciotn ImageTTFText and it haven't a parm that tells the
alignment.
I looked at the IMAGE
Also when I right-click and
choose Save As it only lets me save as a bmp. Again, it displays fine, I
would just like to make it work like a real image.
Clear your IE cache (TIF (Temporary Internet Files)). If that doesn't help,
follow Miguel's advice.
Kai
--
Kai Schätzl, Berlin, Germany
At 8:17 PM -0800 23/3/02, Rasmus Lerdorf wrote:
failing. I use gd2 these days because the 8-bit limitation of gd1 just
sucks. You can find my simple gd2 instructions here
http://www.php.net/~rasmus/gd.html
I found that enabling GD and freetype support in php-4.1.2 was not
this simple.
I guess I should clarify. If the image that's referenced in the
database is, for example, 700x300, I want to reduce it to 600
pixels wide, keeping the height proportional. Then, save that
image to a new name somewhere else in the filesytem. Then I want
to reduce the image further to 300
On Monday 25 March 2002 08:06, Dale Lora Marshall wrote:
I guess I should clarify. If the image that's referenced in the
database is, for example, 700x300, I want to reduce it to 600
pixels wide, keeping the height proportional. Then, save that
image to a new name somewhere else in the
On Sun, 24 Mar 2002, Shaun Martinec wrote:
I'm using mysql to store images that I load through a script called
photo.php. I pass it the ID and it displays the image. No problem. However,
when I right-click on the image in my browser (IE6) and choose properties,
it doesn't seem to recognize
Try image/jpeg as your content-type
On Sat, 23 Mar 2002, Navid Yar wrote:
Hello,
I just enabled GD support for PHP via the php.ini file. When I try to
run a script that uses the functions included in the library, it gives
me a dialog box asking me whether I want to save the php file to a
To: Navid Yar
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Image Manipulation/GD support
Try image/jpeg as your content-type
On Sat, 23 Mar 2002, Navid Yar wrote:
Hello,
I just enabled GD support for PHP via the php.ini file. When I try to
run a script that uses the functions included
On the topic of gd support but a slightly different topic-
I was using php 4.0.5
gd 1.8.3 patched for gif support (using libungif for libgif which I
*think* is OK)
FreeType 1.3.1 (compiled myself in /usr/local )
t1lib 1.3.1 (compiled myself in /usr/local )
I was using gd to draw pictures and
reading the ./configure -h I see that they CHANGED what the configure
options mean.
now --with-freetype=dir refers to freetype 2
Untrue, it only refers to freetype2 when you are building against GD2.
phpinfo() says I have FreeType linkage.
But both ImageFtText and ImageTTFText fail to do
Hey, I'm not sure if anyone ever answered your question, but here's a little
function I wrote for something similar to what you want to do and it doesn't
require GD be installed. You need to modify the top portion, I just threw
that in there to show you how it would work. $pic is the name of
Someone just mentioned ImageMagick... Check it out:
http://www.imagemagick.org/
ImageMagickTM is a robust collection of tools and libraries to read, write,
and manipulate an image in many image formats (over 68 major formats)
including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and
Hi
use ImagePNG($im,test.png)
Tom
At 12:17 PM 7/03/2002, Craig Westerman wrote:
The following creates a red rectangle png image
?
Header(Content-Type: image/png);
$im = ImageCreate(500, 75);
$red = ImageColorAllocate($im, 255, 0, 0);
ImageFill($im, 100, 100, $red);
ImagePNG($im);
?
This
Hi Tom,
At first it didn't work. I had to create a blank png image in Photoshop and
uploaded it. I then changed file permissions and then the image creation
worked. Is there a way to write to test.png when it doesn't already exist
and file permissions are set?
Thanks for your help.
Craig
An alternative is to put the code into makeImage.php and then call it
directly from your HTML page with your IMG SRC=makeImage.php whenever
you want that image displayed.
Jim.
Tom Rogers [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi
use
Hi
You have to make sure that the user that your web server is running as has
permission to write where you want to create the file.
Tom
At 12:56 PM 7/03/2002, Craig Westerman wrote:
Hi Tom,
At first it didn't work. I had to create a blank png image in Photoshop and
uploaded it. I then
when you say it doesn't work, do you mean that you get an error message or
it just doesn't write the text to the image?
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 1:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] image generation issues
);
hope this helps.
Hugh
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, February 11, 2002 6:36 PM
Subject: RE: [PHP] image generation issues
when you say it doesn't work, do you mean that you get an error
i get 'Could not read font in..'
i set permissions to 777 on both file and folder
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 2:36 AM
Subject: RE: [PHP] image generation issues
when
, 2002 2:04 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] image generation issues
i get 'Could not read font in..'
i set permissions to 777 on both file and folder
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED
tried everything suggested and still get 'could not read font' oh well
thanx.
- Original Message -
From: hugh danaher [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 3:00 AM
Subject: Re: [PHP] image generation issues
Adrian,
If you're using the code
: Re: [PHP] image generation issues
Hi
Some of MS fonts wont work, try downloading some freeware fonts.
Tom
At 01:24 PM 2/12/02, Adrian Murphy wrote:
tried everything suggested and still get 'could not read font' oh well
thanx.
- Original Message -
From: hugh danaher [EMAIL
This is a very good exercise you shouldn't skip by using prefabricated tools.
Just use a input type=file for the first part and the PHP documentation
for the second - the procedure in itself is really simple, but you'll have
the opportunity to understand some nice technicalities in the process.
Check out when you can use and '
Any number of ' inside gets printed and $vars are parsed (i.e,
'interpreted by php')
Any number of inside of ' gets printed and $vars are NOT parsed.
echo script style=javascript; is wrong because you start at the
first and the after the second you
Dear Sondra,
So, I would suggest you to change your webhosting company.
:o)
Anthony Washington ([EMAIL PROTECTED])
http://www.shell42.com
http://www.comwebhosting.com
On Thu, 6 Dec 2001, Sondra Russell wrote:
Dear Friends,
I'm working on a
array getimagesize (string filename [, array imageinfo])
http://www.php.net/manual/en/function.getimagesize.php
Justin England [EMAIL PROTECTED]
Network Administrator
E-Net Information Services http://www.enetis.net
Tel: 605-341-3638
http://php.he.net/manual/en/function.getimagesize.php
At 9:46 PM + 11/29/01, cosmin laslau wrote:
Hi,
Is there any function or command in PHP that will return the width
an image (GIF)?
Thanks.
--
++
| Steve
The problem is in that you do global only for $ImageFile, but not for $ImageFile_name.
Big flaw is that if someone make a form
FORM ACTION=?php $SCRIPT_NAME ? Method=Post
ENCTYPE=multipart/form-data
INPUT TYPE=hidden name=MAX_FILE_SIZE value=100
Input Type=text Name=ImageFile__name
the funny thing is this
the information is beeing inserted into the database... the file is beeing
uploaded (as i can see it in the directory). I can get results from
$ImageFile
$ImageFile_name
$ImageFile_size
but i cant get a result for $ImageFile_type this comes up blank
there is
PROTECTED]
Sent: Wednesday, November 28, 2001 10:39 AM
Subject: Re: [PHP] Image Uploads beeing corupted
the funny thing is this
the information is beeing inserted into the database... the file is beeing
uploaded (as i can see it in the directory). I can get results from
$ImageFile
Hristov [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2001 10:51 AM
Subject: Re: [PHP] Image Uploads beeing corupted
this means nothing to me... sorry, i've only been working with PHP for a
couple weeks. and a few month of web learning. the site im working
on is hosted by some other
You have to have one script for the page and one which serves the image. Also it's
possible to use just one script by using GET but
this is a mess
some_script.php:
?
...
?
html
...
img src=get_image.php
get_image.php:
?p
herader('image/jpeg');
...
?
Andrey Hristov
Adam -
If you're on a machine that has ImageMagick installed on it
(most Linux boxes I've been on have it installed already)
you can do something like this in PHP:
$origfile = /home/bob/my_face.jpg;
$img_dir = /usr/local/www/htdocs/images;
$dest_file = $img_dir . /t_ . basename($userfile) .
It worked!! but only after I removed the two blank lines above the ?php
start line too. Thank you very much.
- Original Message -
From: Corin Rathbone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 3:40 PM
Subject: RE: [PHP] Image header
Hi,
read the manual on the GD-library (www.php.net/image)
it wont do any GIFS anymore, but it'll all the rest
Bolke
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: Wednesday, August 08, 2001 6:14 PM
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] Image
Nevermind, I figured it out. I needed to create image 2 with
ImageCreateTrueColor()
-Original Message-
From: Phil Spitler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 1:41 PM
To: PHP
Subject: [PHP] image help please
Can anyone see why this blows up? It basically
Not an answer I'm afraid but does PHP has the ability to do this with JPEGs?
Would be VERY useful to me if it does!
- seb
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 21 July 2001 23:27
To: [EMAIL PROTECTED]
Subject: [PHP] Image color quality problems
I have
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Image color quality problems
Not an answer I'm afraid but does PHP has the ability to do
this with JPEGs? Would be VERY useful to me if it does!
- seb
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 21 July 2001 23:27
Thanks Kurt. Unfortunately my server only has gd 1.6.2 (gd 1.8.3 required
aparantly) and I can't change that. Never mind.
- seb
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 00:26
To: 'Seb Frost'; [EMAIL PROTECTED]
Subject: RE: [PHP] Image color
PROTECTED]
Subject: RE: [PHP] Image color quality problems
Thanks Kurt. Unfortunately my server only has gd 1.6.2 (gd
1.8.3 required
aparantly) and I can't change that. Never mind.
- seb
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: 22 July 2001 00:26
the function unlink() will delete your old file...
http://www.php.net/manual/en/function.unlink.php
- Original Message -
From: Brad R. C. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 3:01 PM
Subject: [PHP] Image Submission into a Database Updating
Ok.. I have
www.php.net/GetImageSize
list($width, $height) = getimagesize(file.gif);
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Kevin Pratt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
You must have the gd library compiled into PHP for this
http://www.php.net/manual/en/ref.image.php
?
$directory = getcwd();
$directory = $directory./photos;
$size = GetImageSize($directory/$image); // feed the name of the
original image here.
$width = $size[0];
$height = $size[1];
on 7/9/01 2:27 PM, Steph at [EMAIL PROTECTED] wrote:
Hi all! New to the list and new to PHP. Im trying to create Image thumbnail
dynamically versus creasting them manually via my graphics program.
There's a nice one here:
http://www.brokenchair.org/projects/snippets/
Susan
--
PHP
I had a similar problem a while back that I solved by isolating my
variables. Such as:
?php echo x = . $mapclick_x . and y = . $mapclick_y . ; ?
As for why it's happening, I'm not sure.
--kurt
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July
I've found the bug in this question. Still no luck with QUESTION 1 sorry to
bug you guys
Susan
-
QUESTION 2
I want to check how large the image is, so I tried this:
$test = GetImageSize ($maploc);
echo $test[3];
(it's a jpg, and $maploc is any URL)
But I get this error:
on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote:
I had a similar problem a while back that I solved by isolating my
variables. Such as:
?php echo x = . $mapclick_x . and y = . $mapclick_y . ; ?
As for why it's happening, I'm not sure.
Wow, that fixed it! Though it turns
because of problems just like this, i've moved to using printf() instead of
echo().
printf(x = %s and y = %s,$mapclick,$mapclick_y);
on 7/3/79 5:44 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:
on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote:
I had a similar problem a while
]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 03, 1979 4:44 PM
Subject: Re: [PHP] image button troubles
on 7/3/01 7:52 PM, Kurt Lieber at [EMAIL PROTECTED] wrote:
I had a similar problem a while back that I solved by isolating my
variables. Such as:
?php echo x = . $mapclick_x . and y
already exists, the script skips over it, but if it doesn't
it creates it as needed.
-Andy
-Original Message-
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 1:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] image code
Seems pretty straightforward, actually
You need to set the content type. eg: echo Content-type: image/gif; echo
$row[image];
Ethan
- Original Message -
From: Steve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 3:56 PM
Subject: [PHP] image retrival from db?
Anyone have a pointer to a script or
I meant to say Header(Content-type: image/gif);
- Original Message -
From: Steve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 3:56 PM
Subject: [PHP] image retrival from db?
Anyone have a pointer to a script or documentation on how to retrieve an
image that is
I thought this one was quite good to get you up to speed:
http://www.phpbuilder.net/columns/florian19991014.php3
Thing is, although very technically nice, it isnt really very practical,
as your database increases in size rapidly, and data retrival takes
longer and longer. I would recommend you
Seems pretty straightforward, actually; I would write a script that takes as
parameters the name and desired size of a graphic, resizes it, and returns
the thumbnail ( look at ImageJPEG() ). Then I would write a script that
iterates through the files in the directory and, for each, gets a
http://dougiamas.com/photoframe
-Original Message-
From: David L. Walgamotte Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 9:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] image code
Can anyone send me sample code or point me in the right direction. I'm
looking for a php
open the file with gd and use imagesx() and imagesy()
?php
$img = imagecreatefromjpeg($file_name)
$x = imagesx($img);
$y = imagesy($img);
?
gd does not handel quicktime, only jpeg, gif (older, dont go there), png,
tiff I think thts it. I havent checked. but never the less, images,
On Tue, May 22, 2001 at 10:38:32AM -0700, Nicolas Mermet wrote :
I was wondering if there is a way to analize an uploaded jpeg file in
order to extract its resolution in pixels.
GetImageSize() is a favourite one here.
Would that be also possible with a quicktime movie ?
Possibly,
Ryan Sommers [EMAIL PROTECTED] wrote:
When will PHP4.0.6 be released? I'm writing an image library for my site and
could use things like ImageCopyMerge() and ImageCopyResampled().
I think the developers are hoping to release it within a week (if
everything goes smooth :)
--
Henrik Hansen
Done that, doesn't work!
Brave Cobra
- Original Message -
From: Toby Dacre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 3:29 AM
Subject: Re: [PHP] Image Upload??
chmod the file or directory so that php can access it
it doesn't run as you!
--
PHP
Maybe I ought to mention that I don't have direct access to this server.
It's a F2S account, I'm trying to upload to.
BC
- Original Message -
From: Brave Cobra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 10:01 AM
Subject: Re: [PHP] Image Upload??
Done
- Original Message -
From: Brave Cobra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 12:52 PM
Subject: Re: [PHP] Image Upload??
Maybe I ought to mention that I don't have direct access to this server.
It's a F2S account, I'm trying to upload to.
BC
From phpinfo() on f2s.com
upload_max_filesize 2M
So, something like,
@copy($file, /path/to . $file_name)
or die (Blam, something's up!);
should work - haven't got time to try it at the moment.
James.
What am I doing wrong here?
Is there a way to get around the temporary folder?
Tnx
But as you can see too : upload_tmp_dir has no value, so I'm guessing this
won't work. I'm still getting errors with PHP, no problem in CGI though.
BC
- Original Message -
From: James Holloway [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 2:47 PM
Subject: Re: [PHP
This is how I fixed that same issue
in the head of my page
snip
if (ereg (new, $PHP_SELF)) {
$header = img src=location/of/header/image;
$title = www.website.com - What's New; }
elseif (ereg (products, $PHP_SELF)) {
$header = img src=location/of/header/image;
On Tue, 15 May 2001 10:23:39 -0700, Jerry Lake [EMAIL PROTECTED]
wrote:
This is how I fixed that same issue
in the head of my page
snip
if (ereg (new, $PHP_SELF)) {
$header = img src=location/of/header/image;
$title = www.website.com - What's New; }
elseif (ereg (products,
chmod the file or directory so that php can access it
it doesn't run as you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Kyle Mathews wrote:
I'm looking for some code that will upload images to my server from a form
submission.
I'd also like it to check for a max file size of the images.
Any help would be appreciated.
what about reading the manual? there are variables that contain the file size.
Kyle Mathews [EMAIL PROTECTED] wrote:
Hello:
I'm looking for some code that will upload images to my server from a form
submission.
I'd also like it to check for a max file size of the images.
look at the getimagesize() function
--
Henrik Hansen
--
PHP General Mailing List
At 23:30 01.05.01 -0300, you wrote:
Hy guys
how can i know the width and height of an image?
[ r a f a e l f a r i a] _
[EMAIL PROTECTED]
WebMaster Universo Online - http://www.uol.com.br
try GetImageSize(string filename, array[imageinfo]);
oliver
--
PHP General
I want a client to be able to upload a file to the web server via PHP.
Then, I want that image to be processed, scaled, and made into thumbnails
and full-size images. Is this possible with the image processing
capabilities of PHP, or should I use something like Image Magick to do it
Resizing (and resampling) an image:
http://www.php.net/manual/en/function.imagecopyresized.php
http://www.php.net/manual/en/function.imagecopyresampled.php
Is there anything extra in need to install?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hi.
here is my GD report from PHPInfo()
gd
GD Support enabled
GD Version 1.6.2 or higher
FreeType Support enabled
FreeType Linkage with TTF library
GIF Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
I think you don't have JPG enabled.
As for resizing images yes,
Again - if you have imagemagick installed email me and I'll email you my little
class that does this.
--Joe
On Thu, Apr 19, 2001 at 10:02:47AM +0200, De Bodemschat wrote:
Hello,
I'm creating a bunch of photogalleries and wondering about the following:
- Is it possible to convert an image
Original Message-
From: Joe Stump [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 17:18
To: De Bodemschat
Cc: Php-General-list
Subject: Re: [PHP] image-resize/convert
Again - if you have imagemagick installed email me and I'll email you my little
class that does this.
--
On Sunday 08 April 2001 03:57, you wrote:
I'm wondering if there is any sure way for PHP to determine whether an
uploaded file is definitely an image file.
I have a script that checks for size and mime type ('image/png' or
'image/jpeg'). The script works fine, but I've heard that it is
On 29 Mar 2001 16:33:48 -0800 AD in php.general, YoBro said:
Hello,
Is it possible to have PHP resize an image on the server?
Example.
If I upload a JPG file at about 40KB at 600x480 Resolution, but I only want
to display it as a small thumbnail. But if clicking the thumbnail it then
opens in
On Friday 30 March 2001 02:46, you wrote:
Perhaps i'm not following what you're trying to do, but why not
manipulate the height/width img tag attributes to make it look like a
thumbnail, but then when displaying it for real, take them out? there
Well, people sometimes get upset when it takes
On Fri, Mar 30, 2001 at 11:49:45AM +0200, Christian Reiniger wrote:
Well, people sometimes get upset when it takes five minutes to load a
page with, say, only 30 tiny thumbnails...
Image-Resizing withing php is explained pretty well at the php.net-Site.
Yust take a look at the manual for
Perhaps i'm not following what you're trying to do, but why not
manipulate the height/width img tag attributes to make it look like a
thumbnail, but then when displaying it for real, take them out? there
definitely have been posts about this (as usual, check the archives) and
i'm sure a little
Perhaps i'm not following what you're trying to do, but why not
manipulate the height/width img tag attributes to make it look like a
thumbnail, but then when displaying it for real, take them out?
Because then you have to download the entire large image.
Large images are bigger. :)
Jason
ok, so then read the image in using php's image functions, and use
imagecopyresized...you'll even find a post about thumbnails...
http://www.php.net/manual/en/function.imagecopyresized.php
-jack
Jason Murray wrote:
Perhaps i'm not following what you're trying to do, but why not
rom: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 7:49 PM
To: 'Jack Dempsey'; YoBro
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Image Resizing in PHP
Perhaps i'm not following what you're trying to do, but why not
manipulate the height/width img tag attribut
Where can I find a GD with GIF support (the new one only supports JPEG and
PNG)
Regards,
Pablo
""YoBro"" [EMAIL PROTECTED] escribió en el mensaje
9a0k9b$hdp$[EMAIL PROTECTED]">news:9a0k9b$hdp$[EMAIL PROTECTED]...
Hello,
Is it possible to have PHP resize an image on the server?
Example.
check if the area you are filling with another colour is realy closed,
maybe send a url to that it could help
almir
""Kevin Rose"" [EMAIL PROTECTED] schrieb im Newsbeitrag
000c01c0b3b7$87a071c0$8105a8c0@kevin">news:000c01c0b3b7$87a071c0$8105a8c0@kevin...
Hello,
I am using GD v. 1.8.3,
You need to have a separate page that returns that image as if it were a
static file on your site.
--- image.php?id=42 -
?php
$query = 'select blob from blobs where id = $id';
#I'm sure that's not the right SQL...
$image = pg_something($result, 'image');
thanks for the info...
well.
what i did was to fread the files and store them using sessions variables.
at the end of the process. .. i do a walk thur the array and insert them into
the DB...
john
John LYC wrote:
hi..
i have a form that allow users to upload several image files.
For starters, PHP throws away any uploaded files when the script finishes to
avoid a denial of service attack where somebody can overflow your /tmp by
uploading over and over.
You have to copy the files in the first script, and pass *those* locations
on to your next page.
--
Visit the Zend
On Wed, Feb 21, 2001 at 05:48:50PM -0500, Jaxon wrote:
Is there any way to take an image from the filesystem, say a .jpg or .png,
and display it in a different orientation? e.g. 20 degrees to the right?
Yes, php_imlib can do image rotations.
http://mmcc.cx/php_imlib/
Three quite related posts all in rapid sucesssion
At 17:48 21/02/2001 -0500, Jaxon wrote:
Is there any way to take an image from the filesystem, say a .jpg or .png,
and display it in a different orientation? e.g. 20 degrees to the right?
At 17:18 21/02/2001 -0500, Dale Frohman wrote:
Does
At 17:48 21/02/2001 -0500, Jaxon wrote:
Is there any way to take an image from the filesystem, say a .jpg or
.png,
and display it in a different orientation? e.g. 20 degrees to the right?
At 17:18 21/02/2001 -0500, Dale Frohman wrote:
Does anyone know of a way to resize images as they are
keep the images in a folder on the file system and link the filename of the
picture to the product tuple in the dataabse.
I would suggest you use the product ID as the filename for the picture in
the folder. that shoudl amke it easier for you to administer.
best regards
Ankur Verma
HCL
That is exactly what I ended up doing. Thanks to all.
Gary
Ankur Verma wrote:
keep the images in a folder on the file system and link the filename of the
picture to the product tuple in the dataabse.
I would suggest you use the product ID as the filename for the picture in
the folder.
Gary,
Put the path to the pic in the database, and the pic in the filesystem.
Ususally much faster, unless you have a very large number of pics in a
folder.
regards,
andrew
-Original Message-
From: Gary [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 3:25 PM
To:
In my humble opinion, I would place the actual images in your web directory
and put the file names into the database so build your image tags.
Sure the db can store the actual image data, but I really believe that the
filesystem is the better medium for the raw files.
Name the image relating to
On Wed, 7 Feb 2001 17:52, Lauri Jakku wrote:
Hi,
i've installed latest apache and php.. and find out that the
image* functions dosen't work ..
apache_1.3.17
freetype-2.0.1
gd-1.8.4
jpeg-6b
php-4.0.4pl1
are compiled installed without any whine ..
What do you mean 'don't
Can anyone tell me how to display both jpg and gif images. Basically,
what i've got is:
img src="$filedir/$CUserName".jpg
Now, I know I probably need slashes in there and I played around with it
but no luck. Where do I put them?
TIP: Use "View Source" in your browser to see what the IMG
401 - 497 of 497 matches
Mail list logo