뮤

캘러리세로형 스킨입니다.

gal.JPG
image_size.php 는 그누보드/shop/image_size.php 로 해주세요.

데모

http://pkgtest.mireene.com/gnu/bbs/board.php?bo_table=top01

첨부파일

gal.JPG (17.5 KB)
0회 2007-01-26 14:23
i_gal.zip (72.4 KB) 199회 2007-01-26 14:23

댓글 13개

이미지 리사이즈 관련 스킨 올려요. ^^

http://sir.co.kr/bbs/tb.php/g4_tiptech/9839

참조하시면.. 더 좋은것들 ......만들수 있을거여요
참고로... 아래 파일...전 아직 안해봤는데요.. 누가좀 해주징~~ 흐~ 좋을거 같아요.
출처: http://au3.php.net/manual/en/function.imagejpeg.php

function create_thumbnail( $source_file, $destination_file, $max_dimension)
{
list($img_width,$img_height) = getimagesize($source_file); // Get the original dimentions
$aspect_ratio = $img_width / $img_height;

if ( ($img_width > $max_dimension) || ($img_height > $max_dimension) ) // If either dimension is too big...
{
if ( $img_width > $img_height ) // For wide images...
{
$new_width = $max_dimension;
$new_height = $new_width / $aspect_ratio;
}
elseif ( $img_width < $img_height ) // For tall images...
{
$new_height = $max_dimension;
$new_width = $new_height * $aspect_ratio;
}
elseif ( $img_width == $img_height ) // For square images...
{
$new_width = $max_dimension;
$new_height = $max_dimension;
}
else { echo "Error reading image size."; return FALSE; }
}
else { $new_width = $img_width; $new_height = $img_height; } // If it's already smaller, don't change the size.

// Make sure these are integers.
$new_width = intval($new_width);
$new_height = intval($new_height);

$thumbnail = imagecreatetruecolor($new_width,$new_height); // Creates a new image in memory.

// The following block retrieves the source file. It assumes the filename extensions match the file's format.
if ( strpos($source_file,".gif") ) { $img_source = imagecreatefromgif($source_file); }
if ( (strpos($source_file,".jpg")) || (strpos($source_file,".jpeg")) )
{ $img_source = imagecreatefromjpeg($source_file); }
if ( strpos($source_file,".bmp") ) { $img_source = imagecreatefromwbmp($source_file); }
if ( strpos($source_file,".png") ) { $img_source = imagecreatefrompng($source_file); }

// Here we resample and create the new jpeg.
imagecopyresampled($thumbnail, $img_source, 0, 0, 0, 0, $new_width, $new_height, $img_width, $img_height);
imagejpeg( $thumbnail, $destination_file, 100 );

// Finally, we destroy the two images in memory.
imagedestroy($img_source);
imagedestroy($thumbnail);
}
유용할거 같아요.. 시간날때 써먹게 여기에 올려놓을게요..
----------------------------------------------------
수고하셨습니다~!
호곡...아빠 안녕하세요.. ^^ 올리는 중인데 아빠님이시네요 호호호
좋은 자료 감사드립니다.
즐거운 하루 되세요^^
알라뷰님 고맙습니다. 알라뷰님 스킨 넘 이쁘다보니..무단으로 썼어요.
^^ 용서해 주세요.
감사합니다. 이런거 찾는 사람들도 있더군요, ^^
ㅎㅎ 제가 필요해서요.. .. gd가 안되서요..m,,m
수고하셨습니다~**^^**
많이 찾았는데,, 여기 있네요~ 잘 사용할께요
오.. 받고 싶다 ㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 스킨

5,847건

스킨의 저작권은 해당 스킨 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다. 스킨 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y 그누보드와 관련이 있지만 스킨과 빌더가 아니면 플러그인 게시판에 올려주세요.

+
분류 제목 글쓴이 날짜 조회
외부로그인 07-01-29 조회 5,563
기타 07-01-29 조회 9,972
최신글 07-01-28 조회 3,718
기타 07-01-28 조회 2,661
기타 07-01-28 조회 6,822
최근게시물 07-01-27 조회 7,245
게시판 07-01-27 조회 7,035
최근게시물 07-01-27 조회 3,319
갤러리 07-01-26 조회 5,477