imagemagick在windows下安裝

來源:互聯網
上載者:User

標籤:csdn   output   技術   article   dll   char   coff   安裝   date   

原文地址:http://blog.csdn.net/royal_coffee/article/details/1602933

 

注意:本補述僅提供 Windows 下安裝建議。

1. 到 http://www.imagemagick.org/script/download.php

下拉頁面到頁面中下部(頁面上部分是linux&ios的下載地區)

 

 

開始下載。

2. 安裝下載回來的 ImageMagick-x.x.x-xxx-windows-dll.exe ,建議安裝在 C:/Program Files/ 以外的資料夾。另外安裝時也請勾選 Update executable search path ,以讓系統可以找到 ImageMagick 執行檔的位置;其他用不到的選項可以不勾選。

3. 安裝完成後,請到安裝目錄下,將 ImageMagick 的 convert.exe 前面加上 im_ ,變成 im_convert.exe 。因為 Windows (XP) 本身已經有個叫 convert.exe 的檔案,改名後可避免與其發生衝突。

4. 打開 regedit.exe ,搜尋 convert.exe ,找到 [ImageMagick 安裝目錄]/convert.exe 的登錄值,將其改名為 im_convert.exe ,或刪除該登錄值。 (應該只有一個 AutoRun 的登錄值)

5. 使用方式如同原作者所著,僅需修改執行目錄及 convert 名稱即可。

 

其它的參數

1.產生縮圖 
a.指定大小

# convert -sample 80x40 input.jpg output.jpg


b.利用比例

# convert -sample 25%x25% input.jpg output.jpg


2.旋轉圖形 
利用cotate參數,+90表順時針旋轉90度,而-90則表逆時針轉90度

# convert -rotate 90 input.jpg output.jpg


3.轉換格式 
以附檔名為準,如下例就是將jpg轉換成png的用法

# convert input.jpg output.png


4.一次使用多種命令 

# convert -sample 25%x25% -spread 4 / -charcoal 4 input.jpg output.jpg

imagemagick在windows下安裝(轉)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.