Languages Perl & PHP & Python PHP Graphics/ Sound  

A simple thumbnail generator (with correct aspect ratio)

download download  
important code information
author:
Digital
minimum requirements:
A simple thumbnail generator (with correct aspect ratio) description

Resizes an image in the browser without throwing off the aspect ratio... basically it makes the image appear smaller, but not stretch the height... also: you dont need to know how wide/high the image is before, just how wide you want it. Someone called into question my reasoning for even using this function, if you can define this information statically in the html, but what the rude person doesnt realize is that if you are displaying hundreds of images in a while or for loop, you need to be able to define this dynamically. So to the responder: _You_ do your research first. --- Please keep in mind, this is not intended for large files, as it is intended for small files of different dimensions. It is meant for uniformed look, not efficient loading.



File List:
A simple thumbnail generator.txt2Kb

Similar code
Advanced On the Fly button creator (Popularity: ) : This code will draw a button image based on what you specify for the image properties.
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 60
version
size in Kb 1
popularity   691/7913374
user rating 5/10
ad


New Code
Popular Code