bkeep

Also you can set only the width and let the browser figure out the height. I would recommend using some gd image resize function this is some code I use

<?php//================================================================================// PLEASE DO NOT REMOVE THIS HEADER!//// COPYRIGHT NOTICE// This script is licensed under the GPL//================================================================================// This software IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR// OTHER DEALINGS IN THE SOFTWARE.//================================================================================

Take the above code and copy it to a file then save it as something like image.php

then in your webpage you can setup the image functions like so <img src="image.php?pic="Scripts/z500.jpg&width=125" alt="" />

you may have to play with the image path a little depending on your exact setup but you get the drift. you can also set sold=1 and create an image overlay to display over your sold or discontinued items if you need to

Matthew1980

10:57 am on Nov 27, 2010 (gmt 0)

Hi all,

There are some pretty good scripts written for exactly this sort of use out there already, if you want to look at a few and take the best bit's to make something that's just right for you, have a looks on php class repository (google that, sign in - it's free) and you will see lots of things in there that will help you.

I have used it loads of times in the past, and I made myself a pretty good thumbnailer from mixing and matching, then over time you can add/improve it too.

rainborick

8:25 pm on Nov 27, 2010 (gmt 0)

And the reason that you should use a thumbnail script (like the one of those posted above) is that when you just set the width and height in the HTML of your pages, the user will still be downloading the full-sized image file which will make your pages load much more slowly. It also wastes your bandwidth. So use one of these scripts instead. Good luck!