Re: [PHP] Image Resizing

2008-12-21 Thread Kevin Waterson
This one time, at band camp, Stephen Alistoun stephenalist...@gmail.com wrote: I want all the images to resize to 100px width but the height adjusts automatically. Two ways, GD or Imagick http://www.phpro.org/examples/GD-Thumbnail-Based-On-Image-Type.html

Re: [PHP] Image Resizing

2008-12-21 Thread Jason Paschal
i use imageMagick: ?php $image_path = ../images/myimage.jpg; //path to the image from my script $thumb_path = ../thumbnails/mymage.jpg;//path to where i want the thumbnail to be created $width = 100; //greatest allowed width for my thumbnails $height = 100; //greatest allowed

Re: [PHP] Image Resizing

2008-12-21 Thread tedd
At 12:38 PM -0800 12/20/08, Stephen Alistoun wrote: Hi all, What is the best way in PHP to Resize an Image to a specific width. For Example I have images in the following sizes: (1) 200px width and 350px height (2) 125px width and 220px height (3) 166px width and 455px height I want all the

Re: [PHP] Image Resizing

2008-12-21 Thread Gary Maddock-Greene
nice post Tedd and useful web site :) -Gary tedd tedd.sperl...@gmail.com wrote in message news:p06240802c573f5a71...@[192.168.1.101]... At 12:38 PM -0800 12/20/08, Stephen Alistoun wrote: Hi all, What is the best way in PHP to Resize an Image to a specific width. For Example I have images

[PHP] Image Resizing

2008-12-20 Thread Stephen Alistoun
Hi all, What is the best way in PHP to Resize an Image to a specific width. For Example I have images in the following sizes: (1) 200px width and 350px height (2) 125px width and 220px height (3) 166px width and 455px height I want all the images to resize to 100px width but the height

Re: [PHP] Image Resizing

2008-12-20 Thread Ólafur Waage
With the built in functions (GD), you can read up on this function: http://is.php.net/manual/en/function.imagecopyresized.php If you have Imagick installed, you can read up on this: http://is.php.net/manual/en/function.imagick-thumbnailimage.php On Sat, Dec 20, 2008 at 8:38 PM, Stephen Alistoun

Re: [PHP] Image Resizing

2008-12-20 Thread Ashley Sheridan
On Sat, 2008-12-20 at 20:59 +, Ólafur Waage wrote: With the built in functions (GD), you can read up on this function: http://is.php.net/manual/en/function.imagecopyresized.php If you have Imagick installed, you can read up on this:

[PHP] Image resizing problems

2006-03-31 Thread John Nichel
I'm pulling my hair out with this gd resizing of an image, and can't figure out where it's screwing up. I've been trying to batch process about 500 images to resize them to a standard size, and for some reason, instead of resizing the image, it's just taking a corner of the original image...

Re: [PHP] Image resizing problems

2006-03-31 Thread deKeijzer
on http://nl2.php.net/manual/en/function.imagecopyresampled.php is an example how to use it when you are resizing images, I think you are putting some numbers on the wrong place On 3/31/06, John Nichel [EMAIL PROTECTED] wrote: I'm pulling my hair out with this gd resizing of an image, and can't

Re: [PHP] Image resizing problems [SOLVED]

2006-03-31 Thread John Nichel
John Nichel wrote: I'm pulling my hair out with this gd resizing of an image, and can't figure out where it's screwing up. I've been trying to batch process about 500 images to resize them to a standard size, and for some reason, instead of resizing the image, it's just taking a corner of the

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
Sonia wrote: Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor

Re: [PHP] Image resizing...

2005-10-03 Thread Matt Darby
Sonia wrote: Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor

[PHP] Image resizing...

2005-10-02 Thread Sonia
Hi All I've been working on finishing a project SGML2IMAGE and I am sort of having trouble with resizing of images. I am trying to just use the GD library so when I distro the package it will not need any other things installed to be used. Now I am using... imagecreatetruecolor ();

Re: [PHP] Image Resizing with GD

2004-01-08 Thread Brian V Bonini
On Thu, 2004-01-08 at 00:20, Peter Vertes wrote: Hello List, I've tried googling but couldn't come up with anything useful so I'm turning to the list. Could anyone send me a link to a tutorial on how to resize images with GD ? Thanks in advance... FYI: Personally, I've found passing

[PHP] Image Resizing with GD

2004-01-07 Thread Peter Vertes
Hello List, I've tried googling but couldn't come up with anything useful so I'm turning to the list. Could anyone send me a link to a tutorial on how to resize images with GD ? Thanks in advance... -Pete -- perl -e 'print pack(H*, 70766572746573406E79632E72722E636F6D0A)'

RE: [PHP] Image Resizing with GD

2004-01-07 Thread Mike Brum
functions since most applications of GD image resizing is for creating thumbnails. -M _ From: Peter Vertes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 12:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Image Resizing with GD Hello List, I've tried googling but couldn't

[PHP] Image resizing

2002-12-19 Thread shaun
Hi, My webserver doesn't have the GD library installed, please can someone tell me how I can resize uploaded images for thumbnails? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image resizing

2002-09-06 Thread Fifield, Mike
I have been trying to figure out the best way to resize photo quality images to thumbnail size and have them come out looking good. I have read about the function http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor() and it looks like it may do this. However I do

[PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Fifield, Mike
I sent this email out earlier this morning and got no response. It was quite early so I thought I would send it again now that more people are hopefully at work :-) I have been trying to figure out the best way to resize photo quality images to thumbnail size and have them come out looking

Re: [PHP] Image Resizing ... lets try this again.

2002-09-06 Thread bbonkosk
What I found works very well for this is the function: getimagesize(); $image_file = something.jpg; $size = getimagesize($image_file); //$size[0] = height and $size[1] = width (double check on php.net) //Then just divide them... $width = $size[1]/2; $height=$size[0]/2; DISPLAY IMAHE

Re: [PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Marek Kilimajer
If you can use exec you may use convert, or also imlib module provides very good results. Fifield, Mike wrote: I sent this email out earlier this morning and got no response. It was quite early so I thought I would send it again now that more people are hopefully at work :-) I have been

RE: [PHP] Image Resizing ... lets try this again.

2002-09-06 Thread Dave at Sinewaves.net
search the archive - i posted a gd1 solution about 2 or 3 weeks ago... dave -Original Message- From: Fifield, Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 7:54 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Image Resizing ... lets try this again. I sent this email

[PHP] Image Resizing

2002-07-25 Thread Nicholas Mercier
Okay. Unless I failed a math course in high school (which is possible) I think my formulas are sound. However I'm having issues with this code. The Intended result: Take any image larger then 180x200 (WxH) and resize it proportionally so it fits within 200x180. What I'm getting, exactly

Re: [PHP] Image Resizing in PHP

2001-03-30 Thread Patrick Dunford
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

Re: [PHP] Image Resizing in PHP

2001-03-30 Thread Christian Reiniger
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

Re: [PHP] Image Resizing in PHP

2001-03-30 Thread Felix Kronlage
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

[PHP] Image Resizing in PHP

2001-03-29 Thread YoBro
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 a new window the full size version. I have seen a auction

Re: [PHP] Image Resizing in PHP

2001-03-29 Thread Jack Dempsey
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

RE: [PHP] Image Resizing in PHP

2001-03-29 Thread Jason Murray
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

Re: [PHP] Image Resizing in PHP

2001-03-29 Thread Jack Dempsey
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

RE: [PHP] Image Resizing in PHP

2001-03-29 Thread Scott Brown
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

Re: [PHP] Image Resizing in PHP

2001-03-29 Thread Pablo
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.