Re: Names of thumbnails (foto.jpg as foto-small.jpg)
Posted: 2009-04-04T18:05:21-07:00
Code: Select all
$filename = basename($small -> getImageFilename());
$name = substr($filename, 0, strrpos($filename, ".")) ."-small". substr($filename, strrpos($filename, "."));'
$small -> writeImage ('img/test/'.$name);