ImageMagick

ImageMagick rotate animated gif glitches

不羁的心 提交于 2019-12-13 02:59:55
问题 I'm using ImageMagick to rotate animated gifs. Simply: convert image.gif -rotate 32 -alpha set -background none output.gif Output: https://s3-eu-west-1.amazonaws.com/uploads-eu.hipchat.com/108112/892631/ATp8mXXrDdSkCNu/sowa-test2.gif Does anyone have a clue why output image is distorted this way and how to avoid this? 回答1: Without seeing the original image, I would suggest extracting each image, apply rotation, and then re-build the animated gif. Example using the following gif: convert anim

Extract/Convert an (multi-file)image that converted

╄→尐↘猪︶ㄣ 提交于 2019-12-13 02:58:38
问题 I have a file made with a program , an image sticker maker . I know this program saves it's images(probably an image, a bg and a mask) into single file with extension ".adf" . I couldn't convert the output file with image magick cause of below error : convert: no decode delegate for this image format `output.adf' @ error/constitute.c/ReadImage/532. I don't know how this Image converted with Image magick . it's my -list configure result : Path: [built-in] Name Value ---------------------------

Optimize an image once and avoid doing it again

拈花ヽ惹草 提交于 2019-12-13 02:49:18
问题 I have a large respository of images, mostly JPEG, which I'd like to optimize using a library like ImageMagick or a Linux CLI tool like jpegtran (as covered in JPG File Size Optimization - PHP, ImageMagick, & Google's Page Speed), but I don't want to have to track which ones have been optimized already and I don't want to re-optimize every one again later. Is there some sort of flag I could easily add to the file that would make it easy to detect and skip the optimization? Preferably one that

How to blur/pixelate part of an image using ImageMagick resulting in big pixels?

别来无恙 提交于 2019-12-13 02:26:34
问题 I am using Perl and ImageMagick (Perl-API). In a first step i take a rectangle of an image and blur this part of the image (plus rotation of that rectangle). Thanks to Mark Setchell this works as further bellow (see stackoverflow question here: How to blur/pixelate part of an image using ImageMagick?). Now my aim is to blur the rectangle of that image with the result of bigger pixels. How can i achieve that? Here the code of Mark Setchell that i use so far: #!/usr/bin/perl use strict; use

Read and display gray scale images in C language.

半世苍凉 提交于 2019-12-13 02:25:56
问题 I want to load gray scale images in C, pre process it and then display the modified image. My question is: What is the right way to import gray scale images(jpeg,png formats)in C language ? My own search before asking this question. 1- fread or with file management, we can read image but data will be encrypted(compressed), I want gray scale values(0-255) of each pixel. 2- There is one API ImageMagick which can be helpful but it is having installation problem with Mac OS X. I have done image

Installing ImageMagick Buildpack on Heroku Rails Cedar 14

眉间皱痕 提交于 2019-12-13 02:00:08
问题 I am trying to install this 3rd party Heroku buildpack for ImageMagick: https://github.com/ello/heroku-buildpack-imagemagick I tried running this command: heroku buildpacks:add https://github.com/ello/heroku-buildpack-imagemagick Then I repushed my app to the server, and did a restart. The app didn't work. So I tried restarting the dyno using this command: heroku ps:scale web=1 I get this response, and cannot run the app unless I remove the ImageMagick buildpack: Scaling dynos... failed !

Superpose two sets of images

≡放荡痞女 提交于 2019-12-13 01:38:11
问题 I have two sets of images in folder A and folder B. They share common file names. E.g. I have Image01 and Image02 in both the folders. I need to superpose Image01 from folder A on Image 01 from folder B and so on respectively. Is there a way I can automate this using ImageMagick or batch processing? 回答1: Assuming your environment is Mac OSX or Linux or Unix... Then you could this: for img in A/* ; do \ convert \ A/${img} \ B/$(basename ${img}) \ -gravity center \ -compose blend \ -composite \

How to process only one part of image by ImageMagick?

时光总嘲笑我的痴心妄想 提交于 2019-12-13 01:35:10
问题 I have an image like below and I want to create a distort effect on it. But just the one part of image, not the whole image. Thanks. 回答1: I am assuming you are using Magick.NET (https://magick.codeplex.com) because you added the C# tag. The example below will first cut out the top 123 pixels of your image and applies a distortion to it. After the distortion it will have to be put on top of the source image. using (MagickImage image = new MagickImage("0nF6D.png")) { using (MagickImage top =

快速搭建 Serverless 在线图片处理应用

自古美人都是妖i 提交于 2019-12-12 23:16:01
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 作者:倚贤 首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute) :函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。函数计算更多信息 参考 。<br /> ImageMagick :ImageMagick 是一个用于查看、编辑位图文件以及进行图像格式转换的开放源代码软件套装。它可以读取、编辑超过100种图象格式。。参见维基百科 词条 ImageMagick 是图片处理的利器,借助 ImageMagick 可以轻松实现图片的裁剪和缩放。虽然很多语言都封装了 ImageMagick 的调用库,但是把图片处理功能和核心业务功能放在同一个服务内,在软件架构上往往不适合。有如下两方面的原因: 一方面,图片处理依赖外部的 bin,已经编译好的二级制不具备可移植性,给打包发布带来了麻烦。另一方面,图片处理往往是比较耗费计算资源的,对于大多数业务系统来说图片处理属于边缘业务,而非核心业务,所以为整个服务预留较多的计算资源是不划算的。更好的选择是把图片处理类业务以微服务的形式切分出来,部署在具备弹性的底层服务之上。对于此类技术需求,

montage does not label images with list of strings represented in text file

给你一囗甜甜゛ 提交于 2019-12-12 23:04:40
问题 I have a directory ( ./img/ ) with a large number of images in it. I want to montage them with specific label for each file. I have a text file ( label.txt ) which has list of labels: label1 label2 label3 label4 ... I use this command: montage -label @label.txt -size 512x512 "./img/*.*[120x90]" -geometry +5+5 photo.png But in result, all images are labeled by all lines of label.txt ! How I can separate them, so each image will be labeled by relevant line of label.txt ? 回答1: ImageMagick works