이미지를 올리기 전에 html에서 resize를 하는 방법
쉽게 말해서 thumbnail을 만드는 과정과 동일하다고 보면 되는구나
https://stackoverflow.com/questions/11376315/creating-a-thumbnail-from-an-uploaded-image
그래도 한국말로 써져있는 이걸 참고해서 코드를 수정해본다.
http://hellogohn.com/post_one75
gd
| GD Support | enabled |
| GD Version | bundled (2.1.0 compatible) |
| FreeType Support | enabled |
| FreeType Linkage | with freetype |
| FreeType Version | 2.3.11 |
| T1Lib Support | enabled |
| GIF Read Support | enabled |
| GIF Create Support | enabled |
| JPEG Support | enabled |
| libJPEG Version | 6b |
| PNG Support | enabled |
| libPNG Version | 1.2.49 |
| WBMP Support | enabled |
| XPM Support | enabled |
| libXpm Version | 30411 |
| XBM Support | enabled |
| WebP Support | enabled |
| Directive | Local Value | Master Value |
|---|---|---|
| gd.jpeg_ignore_warning | 0 | 0 |
위 정보로 함수를 잘 골라서 써야한다.