View Full Version : php image resize thumbnails
07-12-2007, 07:21 PM
I am putting together an image gallery using open source code. I have a script to generate thumbnails but it is not ideal because the quality loss from the original images is high. Secondly, ideally i would like the portrait images to resize to the same size as landscape images but i am not sure how to achieve this.
does anyone have or know of any code to create thumbnails like this??
07-12-2007, 07:40 PM
Give us a link to the gallery where you put your full-size images.
There is a PHP method using GD library that could do it for you.
07-12-2007, 08:01 PM
Im afraid the gallery isnt hosted yet, I am developing on my local machine. What is the PHP method you are refering to?
07-12-2007, 08:05 PM
The PHP GD Library where you manipulate images.
You can use PHP to scan your directory and automatically create
another directory filled with thumbnails of the same name as the
Your local PC needs all of the server stuff with GD.
Specifically, this page:
Where there are good examples on creating thumbnails.
07-12-2007, 08:28 PM
Ah thank you, I will go through that as it seems to be exactly what I am looking for thanks. I will eventually move my work to my webspace which is hosted by Powweb. I dont expect you to have heard of it but would it be reasonable to assume that Powweb would include the GD libraries - it does offer a lot of support for server side scripting.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.