성형전후 사진 섬내일 1,2
$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
$thumb = $thumb_path.'/'.$wr_id;
if ($_FILES[bf_file][name][0])
{
$row = sql_fetch(" select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '0' ");
$file = $data_path .'/'. $row[bf_file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $thu_width / $size[0];
$height = (int)($size[1] * $rate);
@unlink($thumb_path.'/'.$wr_id);
$dst = imagecreatetruecolor($thumb_width, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);
if ($size[2] == 1) imagegif($dst, $thumb, $thumb_quality);
else if ($size[2] == 2) imagejpeg($dst, $thumb, $thumb_quality);
else if ($size[2] == 3) imagepng($dst, $thumb, $thumb_quality);
chmod($thumb, 0606);
}
}
섬내일 생성은 되는데요~ 섬내일 성성후 재수정하면 섬내일이 수정이 안되는데요
고수님들 아시는분~~
$thumb_path = $data_path.'/thumb';
$thumb = $thumb_path.'/'.$wr_id;
if ($_FILES[bf_file][name][0])
{
$row = sql_fetch(" select * from $g4[board_file_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_no = '0' ");
$file = $data_path .'/'. $row[bf_file];
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file)) {
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
break;
$rate = $thu_width / $size[0];
$height = (int)($size[1] * $rate);
@unlink($thumb_path.'/'.$wr_id);
$dst = imagecreatetruecolor($thumb_width, $height);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $thumb_width, $height, $size[0], $size[1]);
if ($size[2] == 1) imagegif($dst, $thumb, $thumb_quality);
else if ($size[2] == 2) imagejpeg($dst, $thumb, $thumb_quality);
else if ($size[2] == 3) imagepng($dst, $thumb, $thumb_quality);
chmod($thumb, 0606);
}
}
섬내일 생성은 되는데요~ 섬내일 성성후 재수정하면 섬내일이 수정이 안되는데요
고수님들 아시는분~~
댓글 2개
사노라가노라
12년 전
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=23606
이색라이브
12년 전
감사드립니다~ 사진2번째 파일도 섬내일 수정가능하나요??
게시글 목록
| 번호 | 제목 |
|---|---|
| 284438 | |
| 284437 | |
| 284435 | |
| 284430 | |
| 284420 | |
| 284417 | |
| 284409 | |
| 284401 | |
| 284399 | |
| 284397 | |
| 284380 | |
| 284378 | |
| 284371 | |
| 284370 | |
| 284366 | |
| 284364 | |
| 284360 | |
| 284357 | |
| 284355 | |
| 284354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기