zoukankan      html  css  js  c++  java
  • ubuntu图片处理工具之Imagemagick

      废话就不多说了,我们用它看的就是它可以批处理吧(在ubuntu下).下面我就说说它常用的一些方法:

      1.改变图片的大小:

    In the konqueror window containing the images you wish to resize, select "tools->open terminal" to bring up a shell.
    
    In the shell type:
    
    mogrify -resize 320x240 *.jpg
    
    After this command is completed, all of the images will be replaced with resized version of themselves. Notice that in an effort to preserve the image aspect ratio, mogrify may not be produce images that are exactly 320x240. To force this to happen, modify the original command to by placing an exclamation point at the end of the desired resolution:
    
    mogrify -resize 320x240! *.jpg

    //在上一个同时处理格式与大小的命令吧
    mogrify -format jpg -resize 1024x1024! *

    //查看一个图片的信息
    identiry girl.png

    // rotate a image (note that it will modify the original picture)
    mogrify -ratate 180 xxx.png

      

  • 相关阅读:
    虚拟机Linux5下安装MyEclipse2014的步骤
    鉴赏
    Linux环境下安装WebStorm
    Bootstrap模态框
    AngularJs
    按钮颜色
    虚拟机里的weblogic之后怎样进入
    搭建GlusterFS文件系统
    邮件服务器fixpost服务(1)
    unbound域名解析
  • 原文地址:https://www.cnblogs.com/slider/p/2352328.html
Copyright © 2011-2022 走看看