nice post Tedd and useful web site :)
-Gary
"tedd" 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 in the following sizes
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 i
i use imageMagick:
http://www.imagemagick.org/Magick++/Geometry.html
$command_line = "convert -geometry $width" . "x" . "$height $image_path
$thumb_path";
system($command_line, $return_var);
if ($return_var == 1) {
echo "Thumbnail creation failed! :(";
} else {
echo "Thumbnail create
This one time, at band camp, Stephen Alistoun 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
http://www.phpro.org/tutorials/Imagick.html#4
Kevin
--
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:
> http://is.php.net/manual/en/function.imagick-thumbnai
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
w
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
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 ca
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 ()
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 ()
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 passi
There are some really good user notes in the function description for
imagecopyresized and imagecopymerge:
http://us3.php.net/manual/en/function.imagecopymerge.php
http://us3.php.net/manual/en/function.imagecopyresized.php
You might also want to do some searching with google for "thumbnail
fu
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
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 h
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;
This way it will keep
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 th
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 take
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
>o
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?
>
> Examp
: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 attributes to make it
> lo
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
> > manip
> 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. :)
Jaso
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 sea
23 matches
Mail list logo