You are here: Re: Question on using GD in PHP to size/resize images « PHP Programming Language « IT news, forums, messages
Re: Question on using GD in PHP to size/resize images

Posted by Jerry Stuckle on 01/06/07 23:04

eholz1 wrote:
> One last question,
>
> In terms of making thumbnails, resizing images, etc are there any other
> programs that work better
> (whatever "better" means) than GD??? I have a version of gallery
> (menalto opensource program) and it seems to like netpbm, ImageMagik,
> etc. are either of these better or faster, etc. Or are they more or
> less equal??? My goal is to check size of original image (typically
> 3000px by 3072 px) and make a thumbnail, and resize the "big" image to
> appropriate browser size (a poor man's gallery program).
> and when a viewer clicks the thumbnail, display the bigger image via
> php in browser.
>
> eholz1
>
> eholz1 wrote:
>
>>Hello Jerry,
>>
>>I love your posts!!!
>>
>>Thanks,
>>
>>ehozl1
>>
>>
>>Jerry Stuckle wrote:
>>
>>>Michael Austin wrote:
>>>
>>>>Geoff Berrow wrote:
>>>>
>>>>
>>>>>Message-ID: <1168063261.502489.160810@v33g2000cwv.googlegroups.com> from
>>>>>eholz1 contained the following:
>>>>>
>>>>>
>>>>>
>>>>>>I am using some php code to check the size of images, and then
>>>>>>resize or determine new dimension for the image. GD seems quite slow.
>>>>>>It takes about 5 seconds (plus or minus) to calulate dimension for 7
>>>>>>jpeg images.
>>>>>
>>>>>
>>>>>
>>>>>You don't need GD to get image sizes
>>>>>http://uk2.php.net/manual/en/function.getimagesize.php
>>>>>
>>>>
>>>>if you are doing thumbnails you need neither.
>>>>
>>>><a href='<?php echo $path ?>'>
>>>><img src='<?php echo $imagelist[$i] ?>' width='50' height='50'
>>>>class='thumb'>
>>>>
>>>>I found this in a php script called imagebrowser.php (a google search
>>>>should locate it...)
>>>>
>>>
>>>And this is exactly what yous should NOT do. It causes the entire
>>>(large) image to load, then be resized by the browser.
>>>
>>>It is much better to create thumbnails and send an image of the
>>>appropriate size. Depending on the original image size, the size
>>>difference is enormous. For instance, if the original image size is
>>>500x500, your thumbnail may be as much as 99% smaller than the original.
>>>
>>>--
>>>==================
>>>Remove the "x" from my email address
>>>Jerry Stuckle
>>>JDS Computer Training Corp.
>>>jstucklex@attglobal.net
>>>==================
>
>

I agree with Andy. ImageMagick is the best way to go, if you can
install it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация