图片镜像处理以及ImageMagick介绍,Mirror images with imagemagick
2012-09-18 15:09
369 查看
Introduction to ImageMagick
ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: G2F (Ada), MagickCore (C), MagickWand (C), ChMagick (Ch), ImageMagickObject (COM+), Magick++ (C++), JMagick (Java), L-Magick (Lisp), NMagick (Neko/haXe), MagickNet (.NET), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), IMagick (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images dynamically and automagically.
ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.
ImageMagick 介绍
ImageMagick® 是一个创建、编辑和压缩位图的软件套件。ImageMagick能够解码、转换多种图片格式(超过100种),包括DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, 和TIFF。ImageMagick可以用于转换、翻转、镜像、旋转、缩放、裁剪和变形图片,调整图片颜色、应用各种图片或在图片上写文字、画直线、曲 线、椭圆和贝塞儿曲线等。
-flip
create a mirror image. |
-floodfill {+-}x{+-}y color
floodfill the image with color at the specified offset. |
Note that if the pixel at the 'seed point' does not itself match the given color (according to -fuzz), then no action will be taken.
This operator works more like the -opaque option, than a more general flood fill that reads the matching color directly at the 'seed point'. For this form of flood fill, look at -draw and its 'color floodfill' drawing method.
-flop
create a mirror image. |
翻转
上下翻转:
convert -flip foo.png bar.png
左右翻转:
convert -flop foo.png bar.png PHP CODE <?php $imagick = new Imagick(); $imagick->readImage('402.jpg'); $imagick->flopImage(); $imagick->writeImage('402A.jpg'); $imagick->clear(); $imagick->destroy(); //echo phpinfo(); ?> 下面的文章对ImageMagick的介绍非常好 http://www.charry.org/docs/linux/ImageMagick/ImageMagick.html
相关文章推荐
- sd_setImageWithURL加载图片失败原因以及处理方法
- 图片处理神器ImageMagick以及PHP的imagick扩展
- ImageMagick +Im4java 处理上传的图片,截图,缩略图,保证高质量
- ImageMagick for java 使用Jmagick处理高质量图片
- iOS聊天气泡的处理——图片拉伸resizableImageWithCapInsets:resizingMode
- 使用ImageMagick + Jmagick进行图片操作(续2)——实现高质量的图片处理
- SDWebImage的底层介绍以及——需要了解和掌握的要点(包括面试题,图片格式,以及GIF的播放)
- php ImageMagick imagick 图片处理
- iOS - UIImageView 的contentMode属性,以及图片拉伸stretchableImageWith
- java图片处理工具之-ImageMagick+jmagick(二)
- iOS多线程-SDWebImage简单介绍 1 设置imageView的图片 (内存缓存&磁盘缓存) 1 [cell.imageView sd_setImageWithURL:[NSURL URL
- 使用ImageMagick+Jmagick处理图片问题
- java图片处理工具之-ImageMagick+jmagick(二)
- 3.1、Dcoker-1.12 image(镜像)和container(容器)介绍以及查看[四]
- 使用(获取)Images.xcassets中的图片名,不能直接[UIimage ImageWithName:],应该这样
- centos6.5 安装ImageMagick&java使用ImageMagick压缩图片
- 图片处理神器ImageMagick以及PHP的imagick扩展
- Glide图片框架使用详细介绍(三)自定义glide以及图片处理自定义transform
- ImageMagick+ PHP IMagick 图片压缩处理
- java图片处理工具之-ImageMagick+jmagick(一)