久々に PHP ネタ。 GD で png 画像を透過、リサイズしてみる。 サンプル function resize_image($org_path, $new_path, $to_width, $to_height) { list($org_width , $org_height) = getimagesize($org_image_path); $src_image = imagecreatefrompng($org_path); $rate = 1; if ($org_width > $org_height) { $rate = $to_width / $org_width; } elseif ($org_width < $org_height) { $rate = $to_height / $org_height; } else { if ($to_width > $to_heigh
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く