共 23 篇文章 |
|
阅137 转1 评0 公众公开 14-11-20 15:19 |
MagickQuantizeImage( wand, // MagickWand number_colors, // Target number colors GRAYColorspace, // Colorspace treedepth, // Optimal depth MagickFalse, // No-dither MagickFalse // Quantization error );// Monochrome image MagickQuantizeImage(self.wand,2,GRAYColorspace,1,MagickFalse,MagickFalse);}-(void)viewDidUnload{ //... 阅39 转0 评0 公众公开 14-11-20 10:40 |
使用WebP来节省带宽 | Ted1 WebP是什么。WebP希望能够达到和JPEG同水平的图片质量,但是更小的文件,以减少图片的传送时间。而在无损压缩的情形中,比起用libpng产生的PNG图片,WebP少了34%的文件大小,也比用pngout再处理过的PNG图片少了26%的文件大小。webp图片压缩率会比jpeg、png更高,因此下载图片会更省流量,特别适合在mobile app上使用... 阅395 转0 评0 公众公开 14-11-20 10:33 |
阅230 转2 评0 公众公开 14-11-20 10:00 |
ios 开发笔记之图片 Image | 阿峰的技术窝窝关于图片资源。另外谷歌最新推出的一种格式webp1 WebP是什么。WebP希望能够达到和JPEG同水平的图片质量,但是更小的文件,以减少图片的传送时间。而在无损压缩的情形中,比起用libpng产生的PNG图片,WebP少了34%的文件大小,也比用pngout再处理过的PNG图片少了26%的文件大小。webp图片压缩率会比jpeg... 阅513 转0 评0 公众公开 14-11-20 09:48 |
ImageMagick的安装及使用。在这个过程中,它会对系统的编译链接环境以及ImageMagick所依赖的第三方库进行检查,特别需要注意的是,ImageMagick在处理图片时需要依赖jpeg、png等第三方图片库,如果你的程序需要处理这些格式的图片,需要确保这些库已经正确的安装,./configure结束后会输出一个检查报告,如下图:默认的ImageMagick会被安装到/us... 阅37 转0 评0 公众公开 14-11-19 18:07 |
then echo "src directory not exist: $SRC_DIR" exit 1fi# check dest dirif [ !then echo "src directory not exist: $SRC_DIR" exit 1fifor src_file in $SRC_DIR/*.png ;do echo "process file name: $src_file" width=`identify -format "%[fx:w]" $src_file` height=`identify -format "%[... 阅18 转1 评0 公众公开 14-11-19 16:33 |
Downloading Input Images and ResultsAs much as possible, I try to use images built-into IM (such as"logo:" or "rose:") as input images for IM examplecommands, or to generate input images using IM commands. I also often re-usethe output of previous commands in later examples. Because of this, youusu... 阅18 转0 评0 公众公开 14-11-19 16:32 |
后台使用imagemagick的convert命令来处理图片真是太方便了。convert功能强大,用来批处理图片的放大、缩小、裁剪、旋转、合并、水印、拼接、格式转换等都非常方便,特别适合后台的图片处理。 阅94 转2 评0 公众公开 14-11-19 16:31 |