| @@ 1459-1463 (lines=5) @@ | ||
| 1456 | if (!imagejpeg($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn", 75)) { |
|
| 1457 | return "save thumb failed [$ext]"; |
|
| 1458 | } |
|
| 1459 | } elseif ($ext == 'png') { |
|
| 1460 | if (!imagepng($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn", 4)) { |
|
| 1461 | return "save thumb failed [$ext]"; |
|
| 1462 | } |
|
| 1463 | } elseif ($ext == 'gif') { |
|
| 1464 | if (!imagegif($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) { |
|
| 1465 | return "save thumb failed [$ext]"; |
|
| 1466 | } |
|
| @@ 1467-1471 (lines=5) @@ | ||
| 1464 | if (!imagegif($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) { |
|
| 1465 | return "save thumb failed [$ext]"; |
|
| 1466 | } |
|
| 1467 | } elseif ($ext == 'bmp') { |
|
| 1468 | if (!imagebmp($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) { |
|
| 1469 | return "save thumb failed [$ext]"; |
|
| 1470 | } |
|
| 1471 | } else { |
|
| 1472 | return "save thumb failed [$ext], unknown extension"; |
|
| 1473 | } |
|
| 1474 | } |
|