Index: temp/trunk/data/class/SC_Image.php
===================================================================
--- temp/trunk/data/class/SC_Image.php	(revision 5934)
+++ temp/trunk/data/class/SC_Image.php	(revision 9090)
@@ -51,4 +51,38 @@
 		}
 	}
+
+	// ³ÈÂçÎ¨¤ò»ØÄê¤·¤Æ²èÁüÊÝÂ¸
+	function saveResizeImage($file, $zip_scale = 1) {
+		// ¥Ç¥£¥ì¥¯¥È¥ê¼èÆÀ
+		$dir = dirname($file);
+		
+		// ¸µ²èÁü¥µ¥¤¥º¤ò¼èÆÀ
+		list($src_w, $src_h) = getimagesize($file);
+	
+		// °µ½ÌÎ¨»ØÄê
+		$zip_width = $src_w * $zip_scale;
+		$zip_height = $src_h * $zip_scale;
+		
+		// °µ½ÌÀè²èÁü
+		$dst_im = imagecreatetruecolor($zip_width, $zip_height);	
+		imagecopyresampled($dst_im, $file, 0, 0, 0,0, $zip_width, $zip_height, $src_w, $src_h);
+
+		// ²èÁü½ÐÎÏ
+//		header("Content-Type: image/gif");
+//		ImageGIF($dst_im);
+//		ImageDestroy($dst_im);
+		
+		// °ì°Õ¤ÊID¤ò¼èÆÀ¤¹¤ë¡£
+		$uniqname = date("mdHi") . "_" . uniqid("");
+		$filename = $uniqname . ".gif";
+		$path = $dir . $filename;
+		if(is_dir($dir)) {
+			ImageGIF($dst_im, $path);
+			return $path;
+		}
+		
+		print("²èÁü¤ÎÊÝÂ¸¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£");
+		return "";
+	}
 }
 ?>
