이런거 물어 봐도 되나 싶네요... 정보
도움요청 이런거 물어 봐도 되나 싶네요...
관련링크
http://zeronara.net
34회 연결
본문
픽셀광고 소스를 보면
/*
* Convert all files supporting ext.
*/
function convert_file_jpg($image,$ext) {
* 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") {
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);
}
$src = imagecreatefromgif($cfg['upload_path'].$image);
}
// Rename new image
$new_image = substr($image,0,-3).'.jpg';
$new_image = substr($image,0,-3).'.jpg';
// Delete old image
unlink($cfg['upload_path'].$image);
unlink($cfg['upload_path'].$image);
// Create new JPG image
imagejpeg($src,$cfg['upload_path'].$new_image,$cfg['jpg_quality']);
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; // jpeg quality, default should be fine.
이렇게 출력을 하고 있습니다..
그런데 문제는 속도가 느리다는거죠...
$cfg['jpg_quality'] = 100; 이걸 줄이면 속도는 나오지만 그렇게 되면 올리는 배너의 색상이 흐려집니다..
어떻게 방법이 없을까요???
댓글 전체
75 정도가 적당하지 않을까요?
그렇게 되면 배너의 색상이 살지 않습니다~!