메뉴 건너뛰기

app

[PHP] 이미지 리사이징과 소문자로

박영식2009.01.02 16:50조회 수 5132댓글 0

    • 글자 크기
    //////////파일 리사이징///////////
    copy($file_name1,str_replace(".jpg","_o.jpg",$file_name1));
    $fnm=$file_name1;
    list($width, $height) = getimagesize($fnm);
    $newwidth = 300;
    $newheight = 225;
    // Load
    $thumb = imagecreatetruecolor($newwidth, $newheight);
    $source = imagecreatefromjpeg($fnm);
    // Resize
    imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height);
    // Output
    imagejpeg($thumb, $fnm);
   //////////파일 리사이징///////////

  $file2_name = strtolower($HTTP_POST_FILES[file2][name]); // 대문자를 소문자로 변경
박영식 (비회원)
    • 글자 크기
[PHP] WGS84->도분초 변환 수식 (by 박영식) [LINUX] 세마포어(SEMAPHORE), 뮤텍스(MUTEX) (by 박영식)

댓글 달기

박영식
2010.09.29 조회 5295
박영식
2010.09.09 조회 5111
박영식
2010.05.25 조회 4610
박영식
2010.01.14 조회 5348
박영식
2009.09.21 조회 4582
박영식
2008.08.18 조회 6530
박영식
2008.08.17 조회 4717
박영식
2008.07.24 조회 5222
박영식
2008.07.23 조회 8444
박영식
2008.07.22 조회 3731
박영식
2008.04.11 조회 2649
박영식
2008.01.20 조회 2472
박영식
2007.12.23 조회 3610
첨부 (0)
위로