제

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

· 2006-03-15 (수) 10:04:19 · 1355 · 2
픽셀광고 소스를 보면
 
/*
* 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;  이걸 줄이면 속도는 나오지만 그렇게 되면 올리는 배너의 색상이 흐려집니다..
 
어떻게 방법이 없을까요???
|

댓글 2개

75 정도가 적당하지 않을까요?
그렇게 되면 배너의 색상이 살지 않습니다~!
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

202,958건
+
제목 글쓴이 날짜 조회
06-03-15 조회 1,356
06-03-15 조회 1,377
06-03-15 조회 1,928
06-03-15 조회 1,514
06-03-15 조회 1,406
06-03-15 조회 1,353
bbbking
06-03-15 조회 1,523
러러브레터
06-03-15 조회 1,783
06-03-15 조회 1,560
bbbking
06-03-14 조회 1,436
06-03-14 조회 1,322
06-03-14 조회 1,528
06-03-14 조회 2,071
06-03-14 조회 1,670
06-03-14 조회 1,574
06-03-14 조회 1,915
bbbking
06-03-14 조회 1,336
06-03-14 조회 1,451
06-03-14 조회 2,326
06-03-14 조회 1,424