Questions tagged [imagemagick]

ImageMagick is an open source software suite for displaying, converting and editing raster image files.

The software mainly consists of libraries and a number of utilities for manipulating images.

File format conversion

One of the basic and thoroughly-implemented features of is its ability to efficiently and accurately convert images between different file formats. Over 100 different formats are supported.

Language Bindings

There are ImageMagick bindings for most popular programming languages including , , , , , , , , , , , and . There are also bindings for which only operate in Mac OS X and Linux, not iOS.

Distribution

is cross-platform, and runs on all recent versions of Microsoft Windows (except Windows 95), and Unix-like systems including Mac OS X, Linux, Solaris, and FreeBSD. The project's source code can be compiled for other systems, including AmigaOS 4.0 and MorphOS.

Resources

9193 questions
3
votes
3 answers

How to trim animated gif (using imagemagick)?

Given an animated gif over a solid background color I'd like to trim away the padding. Concretely, I'd like to crop the image to the maximum extent of the foreground object over all frames: I can't seem to find the right combination of -alpha,…
3
votes
2 answers

From jpg to animated gif

I'm desperate, I need to convert some jpg images into an animated gif. I've tried ffmpeg, but the result has a terrible quality. Also tried imagemagick, and the result looks great but it weights 511 KB !! Anyone please can tell me what to use or…
lleoun
  • 477
  • 3
  • 6
  • 15
3
votes
2 answers

How to use ImageMagick utilities to display/convert raw image files which do not come with any metadata inside?

I got a RAW image file (from a camera sensor module) which does not contain any metadata inside, but I know the metadata from other source, i.e., its width*height, and the depth (8-bit grey). How can I tell imagemagick utilities (convert, e.g.) to…
bruin
  • 979
  • 1
  • 10
  • 30
3
votes
2 answers

Convert images which have the same names but different extensions

For example, I have two files: aaa.jpg (with cat) aaa.png (with dog) As you can see, images are different, despite of their names, which are the same. I want to convert both these images to one single format. The basic attempt for…
user90726
  • 939
  • 1
  • 8
  • 28
3
votes
2 answers

PHP: imagemagick creates empty image with convert

I have a script that is supposed to take an image and convert it to a .jpg. This is the code that makes it happen: $uploadDir = $_SERVER['DOCUMENT_ROOT'] . "/blogimages/"; $tempFile = ereg_replace("'", "_",…
LoneWolfPR
  • 3,978
  • 12
  • 48
  • 84
3
votes
0 answers

How to implement ImageMagick command for halftone dither into ruby script?

I'm trying to make a script for creating halftone dither. Script should take an rgb image and convert it to four png files for all CMYK channels, each being a bitmap with according threshold pattern, as in this image: halftone So far I made a script…
Ian Sowinski
  • 96
  • 1
  • 5
3
votes
2 answers

using histogram to determine colored object presence?

I'm trying to determine if portion of the picture contains red-white striped object (liftramp). If it is present, it looks like this: , and when not like this: The naive approach was to extract histogram, and count if there is more red pixels than…
Matija Nalis
  • 678
  • 1
  • 17
  • 30
3
votes
0 answers

R: Screenshot of you Desktop

Is there a function or package to take a screenshot of your desktop? I understand there are packages like webshot, RSelenium, and SeleniumPipes to take screenshots of the browser, but I'd like a way in R to interact with my OS's native screen…
momo123
  • 93
  • 7
3
votes
1 answer

Add dynamically frames to images

On a web server running PHP I have images like that: To which I have to add frames like that: I think it's quite complex, because images won't have the same ration (width/height), there is a shadow on the Mat which can be modified to change the…
London Smith
  • 1,622
  • 2
  • 18
  • 39
3
votes
2 answers

ImageMagick Java API

Is there any ImageMagick Java API ? -Ken
ken
  • 3,745
  • 6
  • 34
  • 49
3
votes
0 answers

How can I trim an image using Magick.net keeping clipping paths if they exist

When trimming images with Magick.net (to remove white areas around the main object of the image) and they've got a clipping path, then the path is not synchronized with the new proportions of the image. Is there a way to handle this using…
Andreas Jansson
  • 830
  • 1
  • 9
  • 21
3
votes
2 answers

imagemagick convert: how to tell if images need to be rotated?

In my rails app, i let the user upload images to use as thumbnails for resources they've made. I do all the image processing with imagemagick's convert command: i convert to jpg, letterbox it to 800x600px and then make some smaller thumbnail…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
3
votes
2 answers

Does GraphicsMagick have an equivalent to ImageMagick 'convert -auto-orient' option?

I want to move to GraphicsMagick because I'm only resizing and rotating photos, and I heard it was a little faster. But it doesn't take the -auto-orient option directly. Is there another way to do this efficiently? The Imagemagick convert…
michael
  • 4,377
  • 8
  • 47
  • 73
3
votes
1 answer

Imagemagick -canny : what do arguments refer to?

When using the -canny option of the Imagemagick convert tool, what do these arguments refer to ? -canny radiusxsigma{+lower-percent}{+upper-percent} The documentation (https://www.imagemagick.org/script/command-line-options.php#canny) gives examples…
alepage
  • 326
  • 1
  • 8
3
votes
6 answers

ImageMagick single convert command performance

I have a few thousand images to be processed so each millisecond counts. Each image is ~2-3Mb in size. Source file fed to the converter: image.jpg Files to be generated out of the source: orig_image.jpg // original image 1024x768_image.jpg //…
Didzis
  • 308
  • 3
  • 15