Creating thumbnails from jpg's
Posted: Fri Mar 19, 2004 7:20 am
I have made a script that will read a folder containing more folders, each containing more etc... and for each file it finds of .jpg it displays a thumbnail with a src of the jpg's directory/thumbs/jpg's name. If u get me, thats not really important, what is...
I need to create a script that allows a complete novice to add images to the gallery, all they have to do at the mo is upload the image.. but also upload a correctly sized thumbnail of that inside the directories thumbs folder.
Is there a way in Php to dynamically create a thumbnail of a certain size and good compression (IE 10kb max for a 150x150 thumb), or detect if the image has its corresponding thumb image in the thumbs folder, and if not create and upload one itself?
I need to create a script that allows a complete novice to add images to the gallery, all they have to do at the mo is upload the image.. but also upload a correctly sized thumbnail of that inside the directories thumbs folder.
Is there a way in Php to dynamically create a thumbnail of a certain size and good compression (IE 10kb max for a 150x150 thumb), or detect if the image has its corresponding thumb image in the thumbs folder, and if not create and upload one itself?