이런거 물어 봐도 되나 싶네요... > 십년전오늘

십년전오늘

10년전 추억의 책장을 넘기며

이런거 물어 봐도 되나 싶네요... 정보

도움요청 이런거 물어 봐도 되나 싶네요...

본문

픽셀광고 소스를 보면
 
/*
* Convert all files supporting ext.
*/
function convert_file_jpg($image,$ext) {
 global $cfg;
    // Check the extension of the file
 if ($ext == "jpg") {
    // Create new image from JPG
  $src = imagecreatefromjpeg($cfg['upload_path'].$image);
    } elseif ($ext == "jpg") {
     // Create new image from GIF
  $src = imagecreatefromgif($cfg['upload_path'].$image);
    }
    // Rename new image
 $new_image = substr($image,0,-3).'.jpg';
    // Delete old image
    unlink($cfg['upload_path'].$image);
    // Create new JPG image
 imagejpeg($src,$cfg['upload_path'].$new_image,$cfg['jpg_quality']);
return $new_image;
}
 
 
이렇게 컨버터 해서
 
/* main image-map jpeg quanlity */
$cfg['jpg_quality'] = 100; // jpeg quality, default should be fine.
 
이렇게 출력을 하고 있습니다..
그런데 문제는 속도가 느리다는거죠...
$cfg['jpg_quality'] = 100;  이걸 줄이면 속도는 나오지만 그렇게 되면 올리는 배너의 색상이 흐려집니다..
 
어떻게 방법이 없을까요???
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로