___
¼Õ½ÂÇý (¼­¿ï´ë ¼®»ç¹ÝÁÖ¶§ ÃÔ¿µ)
http://classiclove...
ºÒÀÇÇÏ´ÂÀÚ ´õ·¯¿îÀÚ ÀǷοîÀÚ °Å·èÇÑ..
¹æ¸í·Ï
http://ilhan4u.tistory.com/361

¤ýÀÛ¼ºÀÚ sapali
¤ýÀÛ¼ºÀÏ 2013-12-25 07:20
¤ýºÐ ·ù °æÁÖ
¤ýÃßõ: 0  ¤ýÁ¶È¸: 9      
¤ýIP: 211.xxx.205
°íÇØ»óµµ À̹ÌÁö ÀԷ¿¡ ´ëÇÑ Ã³¸®¹æ¹ý·Ð

ÇØ»óµµ ³ôÀº µðÄ«·Î ÂïÀº »çÁøÀ» °Ô½ÃÆÇ¿¡ ¿Ã¸®¸é,


¿ë·®ÀÌ Á¦ÇѵǾî ÀÖÁö¾Ê´Â ÇÑ ÇÑ ÀÚ¸®¸¦ Â÷ÁöÇϰԵǴµ¥,


 


ÀÌ·¯ÇÑ »çÁøµéÀ» ÀÚµ¿À¸·Î ÁÙ¿©Áָ鼭 Å©±â,Ä÷¸®Æ¼)¿øº» »çÁøÀ» »èÁ¦ÇÏ´Â ±â´ÉÀ» ±¸ÇöÇغýÀ´Ï´Ù.


 


 


<?
function resize_image($file,
$width = 0,
$height = 0,
$proportional = false,
$output = 'file',
$delete_original = true,
$use_linux_commands = false,
$quality = 100
) {

if ( $height <= 0 && $width <= 0 ) return false;
# Setting defaults and meta
$info = getimagesize($file);
$image = '';
$final_width = 0;
$final_height = 0;
list($width_old, $height_old) = $info;
# Calculating proportionality
if ($proportional) {
if ($width == 0) $factor = $height/$height_old;
elseif ($height == 0) $factor = $width/$width_old;
else $factor = min( $width / $width_old, $height / $height_old );
$final_width = round( $width_old * $factor );
$final_height = round( $height_old * $factor );
}
else {
$final_width = ( $width <= 0 ) ? $width_old : $width;
$final_height = ( $height <= 0 ) ? $height_old : $height;
}
# Loading image to memory according to type
switch ( $info[2] ) {
case IMAGETYPE_GIF: $image = imagecreatefromgif($file); break;
case IMAGETYPE_JPEG: $image = imagecreatefromjpeg($file); break;
case IMAGETYPE_PNG: $image = imagecreatefrompng($file); break;
default: return false;
}


# This is the resizing/resampling/transparency-preserving magic
$image_resized = imagecreatetruecolor( $final_width, $final_height );
if ( ($info[2] == IMAGETYPE_GIF) || ($info[2] == IMAGETYPE_PNG) ) {
$transparency = imagecolortransparent($image);
if ($transparency >= 0) {
$transparent_color = imagecolorsforindex($image, $trnprt_indx);
$transparency = imagecolorallocate($image_resized, $trnprt_color['red'], $trnprt_color['green'], $trnprt_color['blue']);
imagefill($image_resized, 0, 0, $transparency);
imagecolortransparent($image_resized, $transparency);
}
elseif ($info[2] == IMAGETYPE_PNG) {
imagealphablending($image_resized, false);
$color = imagecolorallocatealpha($image_resized, 0, 0, 0, 127);
imagefill($image_resized, 0, 0, $color);
imagesavealpha($image_resized, true);
}
}
imagecopyresampled($image_resized, $image, 0, 0, 0, 0, $final_width, $final_height, $width_old, $height_old);

# Taking care of original, if needed
if ( $delete_original ) {
if ( $use_linux_commands ) exec('rm '.$file);
else @unlink($file);
}
# Preparing a method of providing result
switch ( strtolower($output) ) {
case 'browser':
$mime = image_type_to_mime_type($info[2]);
header("Content-type: $mime");
$output = NULL;
break;
case 'file':
$output = $file;
break;
case 'return':
return $image_resized;
break;
default:
break;
}

# Writing image according to type to the output destination and image quality
switch ( $info[2] ) {
case IMAGETYPE_GIF: imagegif($image_resized, $output); break;
case IMAGETYPE_JPEG: imagejpeg($image_resized, $output, $quality); break;
case IMAGETYPE_PNG:
$quality = 9 - (int)((0.9*$quality)/10.0);
imagepng($image_resized, $output, $quality);
break;
default: return false;
}
return true;
}
function getSizeFile($url) {
if (substr($url,0,4)=='http') {
$x = array_change_key_case(get_headers($url, 1),CASE_LOWER);
if ( strcasecmp($x[0], 'HTTP/1.1 200 OK') != 0 ) { $x = $x['content-length'][1]; }
else { $x = $x['content-length']; }
}
else { $x = @filesize($url); }
return $x;
}
function file_size($size) {
$sizes = array(" Bytes", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB");
if ($size == 0) {
return('n/a');
} else {
return (round($size/pow(1024, ($i = floor(log($size, 1024)))), 2) . $sizes[$i]);
}
}

//indicate which file to resize (can be any type jpg/png/gif/etc...)
$file = '¿øº»ÆÄÀϸí.È®ÀåÀÚ';

//indicate the path and name for the new resized file
$resizedFile = '¸®»çÀÌ¡µÇ¾î ÀúÀåµÉ °æ·Î/ÆÄÀϸí.È®ÀåÀÚ';

//call the function
resize_image($file ,"600" , "400", true , $resizedFile , false , false ,50 );

?>


 


 


 


 


 


 

 
¹øÈ£     ±Û Á¦ ¸ñ ÀÛ¼ºÀÏ ¹øÈ£     ±Û Á¦ ¸ñ ÀÛ¼ºÀÏ
3797 µ¶ÀÏ Çѱ¹±³À¯Ã¼°Ô 12/13 3796 sm±×·ìÀÚü°¡ ±è´ëÁß Á¤ºÎ¶§ ºñ¾àÀûÀ¸·Î Å« Àü¶óµµÀÇ .. 12/14
3795 ÇöÁ÷ ±³¼ö "±º»ç Äíµ¥Å¸ ´Ù½Ã ÇÊ¿äÇÏ´Ù" 12/14 3794 ¶Ù°í ³­µÚ È­Àå½Ç¼­ ¾Ä½¼¤¤´Ù 12/14
3793 ½Ì°¡Æ÷¸£ÀÇ °íÁúÀû Àα¸ºÎÁ·¡¦¿Ü±¹ÀÎ ³ëµ¿ÀÚµµ, ½Ì°¡Æ÷.. 12/14 3792 '½ÅÀÇ Á÷Àå' ÀÖ¾î¾ß ÇÒ±î, ¾ø¾Ö¾ß ÇÒ±î 12/14
3791 Àú°ÍÀÌ ¹«¾óÀ» »ó¡ ÇÏ°Ú³ë 12/14 3790 '°øµ¿È­Àå½Ç' °³¼±ÇÏÀÚ ¿ù¼¼ ¿Ã¸° ÁýÁÖÀεé 12/15
3789 ETRI '10´ë ±â¼ú'·Î ¹Ì·¡ ¸ÔÀ»°Å¸® ¸¸µç´Ù 12/15 3788 ÁöÀÚü Á¿¸ÁÅ×Å© ¿øÀÎÀº º¹ÁöŸ·É°ú °ø¹«¿ø¿¬±Ý 12/15
3787 12¿ù 14ÀÏ È­Àå½Ç ¾Õ¿¡¼­ Áغñ¿îµ¿ 12/16 3786 Çѱ¹ÀÎÀÇ Á¾Æ¯ ÀÔÀ¸·Î ½±°Ô ÁÖ³¢°í ½Çö°ú Ã¥ÀÌÀº ¾ø´Ù.. 12/16
3785 ¿ëÁ¢ºÀ Àç·á 12/12 3784 Īȭ´ë ¼­¿ï´ë Â÷ÀÌ 12/17
3783 Beijing,China 101.199.108.54 12/17 3782 ÇÏ·ç Æò±Õ 5.1°³»ç' Çѱ¹Àº ºÎµµ 12/17
3781 Àΰ£°ú »ç¶÷ÀÇ Â÷À̸¦ ¸ð¸£³ª ºÁ 12/17 3780 ÆùÅ×Å©Á·, º¸Á¶±Ý ¿øÁ¤´ë 12/17
3779 Ŭ¶ó¿ìµå ¼­ºñ½º·Î º¯½Å ¾îµµºñ Æ÷Åä¼¥CC-Adobe Phot.. 12/18 3778 µ¶Á¡±ÇÀ» ÇâÀ¯ÇÏ¸ç µ¿Á¾ °ø±â¾÷°£ °æÀïµµ °ÅºÎÇÏ´Â ³î.. 12/18
3777 http://share.dnip.co.kr/user/Follow%20Your%20Dream.. 12/19 3776 À­Åë¹þ°í ¸Ç¹ß·Î ¶Ù´Ï »ó´çÈ÷ µ¥°í Ãß¹þ´Ù 12/19
3775 ³í¹® ¾È ½áµµ ¹Ú»çÇÐÀ§ µþ ¼ö ÀÖ´Ù 12/20 3774 ¼ÒŽ´ë½Ç 12/20
3773 ¡° À¥ º¹»ç¹æÁö ¹× ¶Õ±â¿¡ ´ëÇÏ¿© ¡± 12/21 3772 ±¸±Û¿¡¼­ ƯÁ¤ µµ¸ÞÀÎ ³»¿¡¼­¸¸ °Ë»öÇÏ´Â FORM ÅÂ±× 12/21
3771 ¤À¤Ó¤Ó¤À 12/22 3770 ¿ï´ëÇǽùæ È£ÁÖ¾ÆÀÌÇÇ 12/22
3769 ¸Ç¹ß·Î 15Å°·Î 12/22 3768 ÁøÈ­ÇÏ´Â º¸À̽º ÇÇ½Ì 12/23
3767 Á¦ÁÖÇرº±âÁö ¹®Á¦Á¡ 12/23 3766 È£ÁÖ Á¦°ü/¹è°ü»ç·Î »ì¶§´Â ¿µ¾î°¡ ÇÊ¿äÇÏ´Ù 12/23
3765 ÀϺ»ÀÇ Áý´ÜÀÚÀ§±Ç °­È­ ¹× ¹«±â ¼öÃâÀÇ ¼±·Ê¸¦ ³²°å´Ù.. 12/25 3764 auto music mp3 12/23
3763 poken 12/24 3762 ¸Ê¹ß·Î 15Å°·Î ¶Ù¾úÀ½ 12/24
3761 Áõ¿À¿Í ºÐ³ëÀÇ ´ë»ó Âʺü¸® 12/25 3760 °íÇØ»óµµ À̹ÌÁö ÀԷ¿¡ ´ëÇÑ Ã³¸®¹æ¹ý·Ð 12/25
3759 ´Ù±¹¾î º¯È¯ ÆÁ ¡± 12/25 3758 À¯·´Àο¡°Ô Çѱ¹À̶ó¸é ¶°¿Ã¸®´Â °Í 1À§´Â »ï¼º 12/25
3757 ¹æ°úÈÄ °­»ç¸¦ ½Ã°£Á¦ ±³»ç 12/26 3756 Á¶¼±½Ã´ë »ç¶÷µéÀº ¾ó¸¶³ª ¿À·¡ »ì¾ÒÀ»±î? 12/26
3755 ±¤ÁÖ...»õ´©¸®´ç Ãĵé¾î °¡±â À§ÇØ ÇàÁøÁß!!~ [34] 12/26 3754 Àü³²ÆíÀÌ ³²ÀǾָ¦ Å°¿ü´Ù´À°Å¿¡ ºÐ³ë -> ÀÌÈ¥ -> À§ÀÚ.. 12/26
3753 öµµ³ëÁ¶, 12/26 3752 ÂʲÚÃÑ¾Ë ºô¸°»ç°Ç 12/27
3751 »óÇ° »ç°í ÆÈ°í °ÅÁ®ÁÙ¶§ µµÇ¥ 12/28 3750 Çѱ¹ IMF À§±âÀÇ ¿øÀÎÁß Çϳª°¡ ±â¾÷ºÎä¿´´ø°Å ¾ËÁö?.. 12/28
3749 Áß±¹À» ¸·¿¬ÇÑ '½ÃÀå'À¸·Î¼­¸¸ º¸Áö¸»°í '°æÀïÀÚ'·Î¼­.. 12/29 3748 µ¶ÀÏ ¾ð·Ðµé, ¾Æº£ ¾ß½ºÄí´Ï Âü¹è´Â °è»êµÈ µµ¹ß 12/29
1,,,41424344454647484950,,,122

ȸ¿ø°¡ÀÔ £ü ºñ¹Ð¹øÈ£ ã±â






°æºÏ °æÁֽà ³Ê°ÅÁýµ¿(ÁÖ)°æÁÖ°ÔÀÓ˜Þ
TEL:000-000-0000 / FAX:000-000-0000 / »ç¾÷ÀÚµî·Ï¹øÈ£:000-00-0000