image resize - thumbnail name
Posted: Fri Oct 13, 2006 10:45 am
My question is based on the tutorial at viewtopic.php?t=41743
I want the thumbnail name to be based on the file name but the file name contain .jpg. How would I append "-thumb" four characters in from the end?
Creates imagename.jpg-thumb.jpg
-Pete
I want the thumbnail name to be based on the file name but the file name contain .jpg. How would I append "-thumb" four characters in from the end?
Code: Select all
imagejpeg($thumb, "images/". $filename . "-thumb.jpg", 80);-Pete