I've 4 source images; foto1.jpg, foto2.jpg, foto3.jpg, foto4.jpg
phpthumb generates:
- foto1 with name foto1_160.jpg
- foto1 again with name foto2_160.jpg !!
- foto3 with name foto3_160.jpg
- foto3 again with name foto4_160.jpg !!
- etc.
Basically it outputs previous rendered thumb once more instead of actual thumb, but does output with correct file name.
code snippet:
- foreach($pics as $fname) {
- $phpThumb->setSourceFilename($srcdir.$fname);
- ...
- if($phpThumb->GenerateThumbnail()) {
- $output_size_x = ImageSX($phpThumb->gdimg_output);
- $output_size_y = ImageSY($phpThumb->gdimg_output);
- if($phpThumb->RenderToFile($output_filename)) {
- echo 'Successfully rendered";
- }
phpThumb: 1.7.9-200805132119 PHP: 5.3.0