The "convert" command, from the ImageMagick® software suite is a program to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
Questions tagged [imagemagick-convert]
1387 questions
4
votes
2 answers
How to place a GIF on another GIF with ImageMagick, where both GIFs are of different sizes
I have two GIFs of different sizes. I want to be able to place one animated GIF onto a static background GIF at a specific location and at the same time add text to the result. I am new to ImageMagick world, please help.
I am trying to achieve the…

Vipin Nagpal
- 143
- 1
- 3
- 12
4
votes
1 answer
Put image on top of other image, but resize to fit first
I have two pngs. One is of unknown size (but always square), the 2nd is 1024x1024 and mostly transparent. I want to put the 2nd on top of the first, but first scale it down to the size of the first.
E.g. image1.png is 100x100, overlay.png is…

Bart van den Burg
- 2,166
- 4
- 25
- 42
4
votes
2 answers
Imagemagick: how to add border with text just below the image?
I need to add borders around photos and below the photo I want to append text. However, so far I can either add borders or add text, but they don't work togeter.
What I mean is, for appending text:
convert photo.jpg -background White label:"A nice…

Heuristic
- 5,087
- 9
- 54
- 94
4
votes
1 answer
Node.js GraphicsMagick not working ( Invalid Parameter - -resize)
I am trying to use Graphics Magick to resize an image. I have installed the latest GrapchicsMagick and ImageMagick versions. I have installed
npm install gm
npm install im
too. My node.js code is:
var gm = require('gm').subClass({imageMagick:…

Bendeguz Goczi
- 41
- 3
4
votes
1 answer
R: new error with animation package: convert.exe no longer in Imagemagick
As of version 2.5 of animation, it seems that the bug with the path for calling the ImageMagick utility convert.exe on Windows 7 is still present. This can be fixed by adding the convert option to ani.option. However, now the new version 7(.0.6.Q16)…

Marco Stamazza
- 836
- 9
- 15
4
votes
2 answers
ImageMagick colorize command in Linux
I need to change an icon color in a png file, where
the icon has a transparent background.
I used the following ImageMagick command:
convert my_icon.png -fill #de2a2a" -colorize 100 output1.png
In Windows, the command colors the icon without the…

Yosefarr
- 709
- 5
- 12
- 26
4
votes
0 answers
imagemagick convert -crop warning
I'm trying the following:
convert -verbose Originals/100A.png -crop 975x1300+450+550 Originals/100_map.png
I get the following output:
Originals/100A.png PNG 3196x3600 3196x3600+0+0 8-bit sRGB 382KB 0.150u…

Vishal
- 2,097
- 6
- 27
- 45
4
votes
0 answers
Imagemagick: animated gif background flatten
I'm wondering how to remove and replace transparency in an animated GIF with ImageMagick.
My goal is to take several pages with different aspect ratios and make an animated GIF that cycles through them.
document1.png
I am using
convert -delay 50…

earboxer
- 232
- 2
- 5
4
votes
2 answers
How to use stdin with caption in ImageMagick
My understanding from reading the ImageMagick documentation regarding text, is that the @- notation reads the contents of standard input.
As such, this should be a fairly straight forward way to render Hello World.
printf "Hello\nWorld" |
convert…

Walt Stoneburner
- 2,562
- 4
- 24
- 37
4
votes
2 answers
Resize indexed PNG image with ImageMagick while preserving color map
I am using custom batch script to make resized copies (33% and 66%) of all PNG images in folder. Here is my code:
for f in $(find /myFolder -name '*.png');
do
sudo cp -a $f "${f/%.png/-3x.png}";
sudo convert $f -resize 66.67% "${f/%.png/-2x.png}";…

Juraj.Lorinc
- 503
- 6
- 26
4
votes
1 answer
How to add transparency to a PNG image with ImageMagick
How to add transparency to a PNG image using ImageMagick?
How to reduce PNG file opacity using ImageMagick?
How to modify a PNG's alpha channel using ImageMagick?
Use case:
You have several PNG images like this (Source opacity: 100%)
And what to…

Thibault D.
- 10,041
- 3
- 25
- 56
4
votes
1 answer
PNG to PGM conversion without quality loss
So, I have a PNG image file like the following example, and I need it to be converted into PGM format.
I'm using Ubuntu and Python, so any of terminal or Python tools would suit just fine. And there sure is a plenty of ways to do this: using…

Romitas
- 55
- 1
- 5
4
votes
1 answer
How to add top and bottom frame to a video using ffmpeg and imagemagick
I'm trying to add a top and bottom section to a video like we do for image memes. I'm using ffmpeg and imagemagick but there is no inbuilt option to do this task. Let's say i have a video and I need to add the caption like this to the whole video.…

user1159517
- 5,390
- 8
- 30
- 47
4
votes
1 answer
ImageMagick - How to change saturation of a targeted color?
With ImageMagick convert, how to adjust the saturation of a specific hue of colors? (in degrees)
e.g. I increase the saturation of the red (0 degree hue). The bluish colors will not be affected, but the orange will be saturated a little bit as well…

FlorianB
- 2,188
- 18
- 30
4
votes
1 answer
Not able to install both GraphicsMagick and ImageMagick
In my ubuntu server I have two apps, one is using GraphicsMagick and one is using ImageMagick but I am not able to install both GraphicsMagick and ImageMagick, when I am installing one then it is replacing the /usr/bin/convert and the convert…

Saurabh Udaniya
- 468
- 2
- 17