Names of thumbnails (foto.jpg as foto-small.jpg)

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Names of thumbnails (foto.jpg as foto-small.jpg)

Post by mkoppanen »

Code: Select all

$filename = basename($small -> getImageFilename());
$name = substr($filename, 0, strrpos($filename, ".")) ."-small". substr($filename, strrpos($filename, "."));'
$small -> writeImage ('img/test/'.$name);
Mikko Koppanen
My blog: http://valokuva.org
Post Reply