imagepng($ih, $dir.basename($file, $fileinfo['extension']).'png');
Oops, the above line should probably be:
imagepng($ih, $dir.'-watermark'.basename($file, $fileinfo['extension']).'png');
so as not to trample your previous files (if any are pngs).
-- paperCrane <Justin Patrin>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php