@@ 1448-1452 (lines=5) @@ | ||
1445 | if (!imagejpeg($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn", 75)) { |
|
1446 | return "save thumb failed [$ext]"; |
|
1447 | } |
|
1448 | } elseif ($ext == 'png') { |
|
1449 | if (!imagepng($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn", 4)) { |
|
1450 | return "save thumb failed [$ext]"; |
|
1451 | } |
|
1452 | } elseif ($ext == 'gif') { |
|
1453 | if (!imagegif($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) { |
|
1454 | return "save thumb failed [$ext]"; |
|
1455 | } |
|
@@ 1456-1460 (lines=5) @@ | ||
1453 | if (!imagegif($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) { |
|
1454 | return "save thumb failed [$ext]"; |
|
1455 | } |
|
1456 | } elseif ($ext == 'bmp') { |
|
1457 | if (!imagebmp($tim, "$thumbpath/$thumb_dir1/$thumb_dir2/$fn")) { |
|
1458 | return "save thumb failed [$ext]"; |
|
1459 | } |
|
1460 | } else { |
|
1461 | return "save thumb failed [$ext], unknown extension"; |
|
1462 | } |
|
1463 | } |