질문Q #8244
ci 1.7.x사용중 png의 배경 검은색 문제
양승현2014-06-25 16:26:42
# ci의 코어중 이미지 라이브러리를 사용하여 썸네일 생성시 png의 배경이 검은색으로 나오는 문제 패치
 
/system/libraries/Image_lib.php
- line 516~517 :  알파값을 사용하도록 함수 추가
$dst_img = $create($this->width, $this->height);
/************************************ png배경문제 추가부분 시작***************************************/
imagealphablending($dst_img, false);
imagesavealpha($dst_img, true);
/************************************ png배경문제 추가부분 끝***************************************/
$copy($dst_img, $src_img, 0, 0, $this->x_axis, $this->y_axis, $this->width, $this->height, $this->orig_width, $this->orig_height);
답변2
#1 한대승(불의회상) 2014-06-25 20:02:17
좋은 정보 감사 합니다. 
#2 변종원(웅파) 2014-06-26 11:20:36
2.X 대에서는 해결된 문제일 수도... ^^