gd 라이브러리 관련 정보를 부탁합니다. - 극초보입니다. > 그누3질답

그누3질답

gd 라이브러리 관련 정보를 부탁합니다. - 극초보입니다. 정보

그누보드 gd 라이브러리 관련 정보를 부탁합니다. - 극초보입니다.

본문

gd 라이브러리 관련 정보를 부탁합니다.
http://nhacks.com/email/index.php
의 기능을 구현하려고 합니다.

여기저기 들쑤셔보니 gd 라는 것을 이용하면
가능하다고 하는데요, gd 에 대한 정보가
극히 드물고 전문가적 정보밖에 안보이네요.

초보가 읽을만한 정보나
레퍼런스 사이트 혹은 모듈, 샘플 등을
볼 수 있는 사이트 정보 아시면
좀 알려주시면 감사하겠습니다.

보드 스킨 하나 만들다 보니 알아야 할 것이
너무 많네요.  그래도 한발자국 한발자국
진격할 겁니다.

댓글 전체

http://www.boutell.com/gd/faq.html

What does "gd" stand for?

In gd 1.0, it stood for "gif draw." After the Unisys patent on the LZW compression used in GIF came to light and GIF support was dropped, it did not officially stand for anything, but let's just say "graphics draw" and leave it at that. (GIF support is back, thanks to the expiration of the patent, but gd can draw much more than GIFs.)
저도 뭐 약자인지는 모르겠구요, php 로 그래픽을 제어 가능하게 해주는 것 정도로 알고 있습니다.
예를 들면 웹상에서 어떤 텍스트를 입력하면 그것을 gif 나 png 등의 그래픽 화일로 바꿔주는 등의
기능이 있구요, 또 그래프 등의 도표 작성도 가능합니다.
그 밖에 갤러리 게시판에서 섬네일 등을 만들 때도 필요한 것으로 알고 있습니다.
정확한 정보를 못드려서 죄송합니다.
GD 다음링크를 참고하셔야 할듯..
http://kr.php.net/gd
위 링크의 소개부분을 참고하시고...
Introduction

PHP is not limited to creating just HTML output. It can also be used to create and manipulate image files in a variety of different image formats, including gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image streams directly to a browser. You will need to compile PHP with the GD library of image functions for this to work. GD and PHP may also require other libraries, depending on which image formats you want to work with.

You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF, TIFF and JPEG2000 images.

    Note: Read requirements section about how to expand image capabilities to read, write and modify images and to read meta data of pictures taken by digital cameras.


위 링크에 있는 샘플을 한번 돌려보시면 부분적인 감은 잡을수있을듯...
Example 1. PNG creation with PHP
<?php
  header("Content-type: image/png");
  $string = $_GET['text'];
  $im    = imagecreatefrompng("images/button1.png");
  $orange = imagecolorallocate($im, 220, 210, 60);
  $px    = (imagesx($im) - 7.5 * strlen($string)) / 2;
  imagestring($im, 3, $px, 9, $string, $orange);
  imagepng($im);
  imagedestroy($im);
?>
This example would be called from a page with a tag like: <img src="button.php?text=text">. The above button.php script then takes this "text" string and overlays it on top of a base image which in this case is "images/button1.png" and outputs the resulting image. This is a very convenient way to avoid having to draw new button images every time you want to change the text of a button. With this method they are dynamically generated.



##그누보드에 있는 다음 두곳도 참고하시면 좋을듯합니다.

1. 팁앤테크의 "php로 webfont를 이용하여 이미지 파일을 만들경우"
  http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&wr_id=2418
 
2. GD를 사용하는 관리자님께서 제공하신 갤러리 스킨  "게시물안에 갤러리가? (멀티 갤러리)"
  http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=skin3&wr_id=5104
전체 9,564
그누3질답 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT