php 線上切圖程式碼_PHP教程

來源:互聯網
上載者:User





php教程 線上切圖程式碼<br />




圖片裁剪工具

操作說明 關於我們




  • 上傳圖片(u)

  • 矩形裁剪(r)

  • 圓形裁剪(o)

  • 圓角矩形裁剪(c)

  • 圓弧裁剪(a)

  • 多邊形裁剪

  • 直邊曲邊

  • 任意圖形裁剪(m)

  • 裁剪

  • 重設

  • 設定




















操作說明

【滑鼠操作說明】

[1] 滑鼠拖動裁剪框可移動裁剪地區的位置,此操作適用於矩形裁剪,圓形裁剪,圓角矩形裁剪,圓弧裁剪。

[2] 滑鼠拉拽裁剪框邊框可調整裁剪地區的大小,此操作適用於矩形裁剪,圓形裁剪,圓角矩形裁剪,圓弧裁剪。

【鍵盤操作說明】

[3] 按←↑↓→鍵可精確移動裁剪地區的位置,此操作適用於矩形裁剪,圓形裁剪,圓角矩形裁剪,圓弧裁剪。

[4] 按jklm鍵可精確調整裁剪地區的大小,此操作適用於矩形裁剪,圓形裁剪,圓角矩形裁剪,圓弧裁剪。

[5] 按a鍵減小圓角矩形的圓角角度,按d鍵增大圓角矩形的圓角角度,此操作適用於圓角矩形裁剪。

[6] 按awsd鍵可調整圓弧的弧度,此操作適用於圓弧裁剪。

【shift操作說明】

[7] 拉拽滑鼠的同時按shift鍵可按寬與高1:1的比例調整裁剪地區的大小,此操作適用於矩形裁剪,圓形裁剪,圓角矩形裁剪。





關於我們
【本站宗旨】

● 本站旨在為廣大網民提供最專業最全面的圖片裁剪服務.

【網站說明】

● 本站提供以下服務:圖片裁剪,照片裁剪,矩形裁剪,圓形裁剪,弧形裁剪,多邊形裁剪,任意圖形裁剪,動態圖片裁剪.

【聯絡我們】

● 對本站如有疑問之處請與我們聯絡:service@caijian.cc.










upload.php檔案
if (stripos($_server[ "http_host"], 'caijian.cc') === false) exit(0);
if ((($_files["ifile"]["type"] == "image/gif")
|| ($_files["ifile"]["type"] == "image/jpeg")
|| ($_files["ifile"]["type"] == "image/pjpeg")
|| ($_files["ifile"]["type"] == "image/bmp")
|| ($_files["ifile"]["type"] == "image/png"))
&& ($_files["ifile"]["size"] < 3000000))
{
if ($_files["ifile"]["error"] > 0)
{
echo "";
}
else
{
$filename = "upload/".date("ymdhis",time()).rand(100,999).substr($_files["ifile"]["name"],strrpos($_files["ifile"]["name"],'.'));
move_uploaded_file($_files["ifile"]["tmp_name"], $filename);

$magick_wand = newmagickwand();
magickreadimage($magick_wand, $filename);
$w = magickgetimagewidth($magick_wand);
$h = magickgetimageheight($magick_wand);
$f = magickgetnumberimages($magick_wand);

echo "";
}
}
else
{
echo "";
}
?>

源碼下載地址
http://down.php100.com/php/2011/0311/22879.html


http://www.bkjia.com/PHPjc/444793.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444793.htmlTechArticle!doctype html public -//w3c//dtd xhtml 1.0 transitional//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml head meta http-equiv=con...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.