Re: How to resize an image with php

From: Shawn Wilson (shawn_at_glassgiant.com)
Date: 12/19/03


Date: Fri, 19 Dec 2003 10:56:14 -0400

Giovanni wrote:
>
> I need to insert a resized image in a html page.
>
> I know that using the html IMG tag it is possible to set the height
> and width attributes, with no need of php (or server-side processing).
>
> But my problem is the following:
> I need to use the resized image as a table background - and
> unfortunately html doesn't support the resize function for image used
> as background !
>
> Is it possible to resize an image dinamically (on the fly) by using
> php ?
> Is it possible without having GD libraries installed ?

You can do it dynamically with GD. PHP doesn't have any built-in image
functions.

If you have ImageMagick (ImageMagick.org), you can use that too. And you may be
able to use GIMP, but I'm not sure.

Regards,
Shawn

-- 
Shawn Wilson
shawn@glassgiant.com
http://www.glassgiant.com


Relevant Pages

  • How to resize an image with php
    ... I need to insert a resized image in a html page. ... I know that using the html IMG tag it is possible to set the height ... with no need of php. ...
    (alt.php)
  • How to resize an image with php
    ... I need to insert a resized image in a html page. ... I know that using the html IMG tag it is possible to set the height ... with no need of php. ...
    (comp.lang.php)
  • How to resize an image with php
    ... I need to insert a resized image in a html page. ... I know that using the html IMG tag it is possible to set the height ... with no need of php. ...
    (php.general)
  • Re: IE6 image resize
    ... you are correct if one just send the image itself to the browser ... BUT not when one uses HTML to fetch the image and display it with other HTML ... With the HTML one gets the full size image not a resized image. ... > Is there some way to get IE6 to resize images from HTML. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)