구글 이미지 캐시 & 리사이즈 사용하기
아래와 같이 사용이 가능합니다.
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년 전 | 4402 | ||
| 2694 | 2개월 전 | 188 | ||
| 2693 | 2개월 전 | 148 | ||
| 2692 | 2개월 전 | 158 | ||
| 2691 | 2개월 전 | 175 | ||
| 2690 | 2개월 전 | 326 | ||
| 2689 | 2개월 전 | 235 | ||
| 2688 |
|
2개월 전 | 441 | |
| 2687 | 2개월 전 | 292 | ||
| 2686 |
선택과집중
|
2개월 전 | 330 | |
| 2685 | 2개월 전 | 291 | ||
| 2684 | 2개월 전 | 347 | ||
| 2683 | 2개월 전 | 482 | ||
| 2682 | 2개월 전 | 276 | ||
| 2681 | 2개월 전 | 303 | ||
| 2680 |
선택과집중
|
2개월 전 | 278 | |
| 2679 | 2개월 전 | 331 | ||
| 2678 |
|
3개월 전 | 429 | |
| 2677 |
|
3개월 전 | 502 | |
| 2676 | 3개월 전 | 326 | ||
| 2675 | 3개월 전 | 305 | ||
| 2674 |
선택과집중
|
3개월 전 | 481 | |
| 2673 |
|
3개월 전 | 322 | |
| 2672 | 3개월 전 | 335 | ||
| 2671 | 3개월 전 | 284 | ||
| 2670 | 3개월 전 | 260 | ||
| 2669 | 3개월 전 | 374 | ||
| 2668 | 3개월 전 | 289 | ||
| 2667 |
선택과집중
|
3개월 전 | 484 | |
| 2666 |
선택과집중
|
3개월 전 | 471 | |
| 2665 |
선택과집중
|
3개월 전 | 405 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기