구글 이미지 캐시 & 리사이즈 사용하기
아래와 같이 사용이 가능합니다.
https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&url=http://coinbbs.co/data/editor/1812/0d5526b28e5721db41cf421fc959a833_1544716702_7462.jpg

[원본]
https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&resize_w=250&url=http://coinbbs.co/data/editor/1812/0d5526b28e5721db41cf421fc959a833_1544716702_7462.jpg

[리사이즈]
자신의 이미지가 http://coinbbs.co/data/editor/1812/0d5526b28e5721db41cf421fc959a833_1544716702_7462.jpg 일경우 앞에 https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&url= 만 넣어주시면 됩니다.
저같은 경우에는 /data/dbconfig.php 파일에
define('CDN_IMAGE_URL', 'https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?container=focus&url=');
/lib/thumbnail.lib.php 에
$thumb_tag = '<img'.$itemprop.' src="'.CDN_IMAGE_URL.$src.'" alt="'.$alt.'" class="img-tag '.$class.'"'.$img_attr.'/>';
$thumb_tag = '<img'.$itemprop.' src="'.CDN_IMAGE_URL.G5_URL.str_replace($filename, $thumb_file, $data_path).'" alt="'.$alt.'" class="img-tag '.$class.'"'.$img_attr.'/>';
위와 같은 형태로 넣어주었습니다. 그외 이미지 사용하는 곳에도요.
아래는 사용가능한 구글 도메인 정보입니다.
173.194.72.132 images1-focus-opensocial.googleusercontent.com
74.125.31.132 images2-focus-opensocial.googleusercontent.com
74.125.31.132 images3-focus-opensocial.googleusercontent.com
173.194.72.132 images4-focus-opensocial.googleusercontent.com
74.125.31.132 images5-focus-opensocial.googleusercontent.com
74.125.31.132 images6-focus-opensocial.googleusercontent.com
74.125.31.132 images7-focus-opensocial.googleusercontent.com
173.194.72.132 images8-focus-opensocial.googleusercontent.com
173.194.72.132 images9-focus-opensocial.googleusercontent.com
댓글 1개
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4436 | ||
| 2244 |
|
2년 전 | 2220 | |
| 2243 | 2년 전 | 2144 | ||
| 2242 | 2년 전 | 2715 | ||
| 2241 | 2년 전 | 1922 | ||
| 2240 | 2년 전 | 3402 | ||
| 2239 | 2년 전 | 2819 | ||
| 2238 |
welcome
|
2년 전 | 1801 | |
| 2237 | 2년 전 | 1487 | ||
| 2236 | 2년 전 | 1820 | ||
| 2235 |
teradesign
|
2년 전 | 2252 | |
| 2234 | 2년 전 | 1781 | ||
| 2233 | 2년 전 | 2008 | ||
| 2232 | 2년 전 | 2526 | ||
| 2231 | 2년 전 | 1971 | ||
| 2230 | 2년 전 | 2432 | ||
| 2229 | 2년 전 | 2351 | ||
| 2228 |
|
2년 전 | 3482 | |
| 2227 | 2년 전 | 3016 | ||
| 2226 | 2년 전 | 1476 | ||
| 2225 | 2년 전 | 1775 | ||
| 2224 | 2년 전 | 1986 | ||
| 2223 | 2년 전 | 2157 | ||
| 2222 | 2년 전 | 1943 | ||
| 2221 | 2년 전 | 2315 | ||
| 2220 | 2년 전 | 3403 | ||
| 2219 | 2년 전 | 2502 | ||
| 2218 | 2년 전 | 2560 | ||
| 2217 |
|
2년 전 | 2091 | |
| 2216 | 2년 전 | 2705 | ||
| 2215 | 2년 전 | 2529 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기