1픽셀 투명이미지 출력하기

Submitted by river - 등록 10 years ago - 수정 10 years ago

별도의 이미지 파일을 두지 않고 (IO를 줄이기 위해서) 가로, 세로 1 픽셀짜리 투명 이미지를 출력하는 방법

$img = "\x47\x49\x46\x38\x37\x61\x1\x0\x1\x0\x80\x0\x0\xfc\x6a\x6c\x0\x0\x0\x2c\x0\x0\x0\x0\x1\x0\x1\x0\x0\x2\x2\x44\x1\x0\x3b";

return Response::make($img, 200, ['Content-Type' =>'image/gif']);
comments powered by Disqus