Re: [PHP] Image Manipulation

2008-11-10 Thread tedd
At 7:16 PM -0500 11/9/08, Ron Piggott wrote: Is there a way to find out the number of pixels wide and high an image is in PHP? Is there a way to resize an image using PHP? Ron Yes tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing L

Re: [PHP] Image Manipulation

2008-11-09 Thread Jochem Maas
Ron Piggott schreef: > Is there a way to find out the number of pixels wide and high an image > is in PHP? > > Is there a way to resize an image using PHP? heh Ron, you've been around this list long enough to know that you should STFW and RTFM before posting questions. http://www.google.

Re: [PHP] Image Manipulation

2008-11-09 Thread Ashley Sheridan
On Sun, 2008-11-09 at 19:16 -0500, Ron Piggott wrote: > Is there a way to find out the number of pixels wide and high an image > is in PHP? > > Is there a way to resize an image using PHP? > > Ron > > Yes. Look at the PHP GD manual. Ash www.ashleysheridan.co.uk -- PHP General Mailing List

Re: [PHP] Image manipulation on the fly

2007-11-08 Thread Per Jessen
Merlin wrote: > Hi there, > > I need to manipulate images on the fly. My goal is to make the image > very bright, or to add a sepia effect. The problem is, that this takes > a lot of computing power on 1024 pictures. About 2s on my server until > the image is delivered. Yeah, you're doing CPU-in

Re: [PHP] Image manipulation on the fly

2007-11-08 Thread Bojan Tesanovic
Hi Merlin, that is very fast for 1024 images, you will not get much more speed if you try doing anything smarter , though there are some image libraries that are faster than GD libs eg www.imagemagick.org On Nov 8, 2007, at 5:13 PM, Merlin wrote: Hi there, I need to manipulate images on th

Re: [PHP] image manipulation with php

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross <[EMAIL PROTECTED]> wrote: I have an saved images I output with this... I want to use getimagesize() to get the height and width of the image and if it is above a certain size then scale/ reduce it. The problems are (i) using getimage() without a url just my viewphoto.php

Re: [PHP] image manipulation with php

2006-08-29 Thread Jochem Maas
Ross wrote: > I have an saved images I output with this... > > > > > > I want to use getimagesize() to get the height and width of the image and if > it is above a certain size then scale/ reduce it. > > The problems are > > (i) using getimage() without a url just my viewphoto.php script w

Re: [PHP] Image manipulation without GD library

2005-01-26 Thread Richard Lynch
Tim Burgan wrote: > Is there any way that I can do some image manipulation - resizing - > without the GD libraries? You can use ImageMagik (aka 'convert') through http://php.net/exec if ImageMagik is installed, and the PHP user can run it. I'm guessing that the same could be said for the GIMP tho

Re: [PHP] Image manipulation without GD library

2005-01-26 Thread Marek Kilimajer
Tim Burgan wrote: Hello, Is there any way that I can do some image manipulation - resizing - without the GD libraries? Can you execute imagemagic's mogrify? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Manipulation

2004-10-01 Thread Matt M.
> I would like to know if there is a way to have PHP determine the > dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide > or height have it scale it down proportionally to that width or > height? look at http://us4.php.net/gd -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Image Manipulation

2004-10-01 Thread Jason Davidson
Yes there is way, search for GD in the php manual, it will explain a solution better than i will. Jason GH <[EMAIL PROTECTED]> wrote: > > I would like to know if there is a way to have PHP determine the > dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide > or height have it

Re: [PHP] Image manipulation in PHP

2004-07-20 Thread Mark Collin
Thanks for the advice, I will look into it. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]: > On Tuesday 20 July 2004 19:28, Mark Collin wrote: > > > Is there any support for TGA images in PHP. > > Not builtin. > > > I have searched through the PHP manual and through the

Re: [PHP] Image manipulation in PHP

2004-07-20 Thread Jason Wong
On Tuesday 20 July 2004 19:28, Mark Collin wrote: > Is there any support for TGA images in PHP. Not builtin. > I have searched through the PHP manual and through the GD library > website and cannot even find a reference to TGA, is there no support for > TGA images in PHP at all? (this seems rath

Re: [PHP] image manipulation

2002-09-01 Thread Andre Dubuc
Hi tux, For your second question, try: http://www.linuxfocus.org/English/July2001/article211.shtml It'll give some basci info on image manipulation using ImageMagick. Hth, Andre On Sunday 01 September 2002 01:19 pm, tux wrote: > Hey all, > > I was just wondering if anyone could recommend an

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-30 Thread Rasmus Lerdorf
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

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-30 Thread Dale & Lora Marshall
Ok, I've been looking at the image functions, and found that I needed to recompile PHP with exif support and load GD and other functions. I've done all of that and now I get the following: Source: /home/jamboimages/images/uploads/alamoarea_97_round_sm.jpg 600 : /images/patches/1997/1997R15.jpg 3

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-24 Thread Jason Wong
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

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-24 Thread Dale & Lora Marshall
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 pixels

Re: [PHP] Image manipulation with PHP on RHLinux 7.1

2002-03-24 Thread Thalis A. Kalfigopoulos
This isn't image manipulation. This is filesystem manipulation. As for the "resizing", check if you have mogrify with you Linux installation and do a system() on it. cheers, --t. On Sun, 24 Mar 2002, Dale & Lora Marshall wrote: > > Hello all. I have a PHP script which retrieves records from

Re: [PHP] Image Manipulation/GD support

2002-03-24 Thread Richard Archer
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. php-4

Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Rasmus Lerdorf
> 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

Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Michael A. Peters
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 wr

RE: [PHP] Image Manipulation/GD support

2002-03-23 Thread Navid Yar
3, 2002 4:41 PM 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 th

Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Rasmus Lerdorf
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

Re: [PHP] IMAGE Manipulation

2002-03-22 Thread James Taylor
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

Re: [PHP] Image manipulation

2001-08-31 Thread Bob Scott
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($userfi

Re: [PHP] Image manipulation

2001-07-10 Thread Chris Lambert - WhiteCrown Networks
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 PROTEC