M

gd 2.0전용함수와 주석을 어떻게 바꾸나요?

Mando
· 22년 전 · 535
해당스킨디렉토리에보면

_include.php 가 있는데요

아래부분에서 바꾸면 됩니다..

function maker( $thum_W, $thum_H ) {
global $thum, $resol, $ori, $ori_info ;

//$newImg = ImageCreate($thum_W,$thum_H); // GD라이브러리 2.0 (이하일 경우)<--이주석처리를 해제하고
$newImg = ImageCreateTrueColor($thum_W,$thum_H); // GD라이브러리 2.0 전용함수<--이부분을 주석처리합니다

if($ori_info[2]=="2") $origImg=ImageCreateFromjpeg($ori);
if($ori_info[2]=="3") $origImg=ImageCreateFrompng($ori);

//ImageCopyResized($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg)); )<--이주석처리를 해제하고
imageCopyResampled($newImg,$origImg,0,0,0,0,$thum_W,$thum_H,ImageSX($origImg),ImageSY($origImg)); <--이부분을 주석처리합니다

Imagejpeg($newImg, $thum, $resol );

chmod($thum,0707);
ImageDestroy($newImg);
ImageDestroy($origImg);

return $thum ;
}
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 365
22년 전 조회 404
22년 전 조회 420
22년 전 조회 612
22년 전 조회 476
22년 전 조회 451
22년 전 조회 441
22년 전 조회 396
22년 전 조회 425
MMando
22년 전 조회 536
22년 전 조회 519
22년 전 조회 312
22년 전 조회 430
22년 전 조회 885
22년 전 조회 394
22년 전 조회 568
22년 전 조회 413
22년 전 조회 342
22년 전 조회 598
22년 전 조회 550
🐛 버그신고