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
7
votes
3 answers
ImageMagick creating multiple files
I'm running the following:
convert '/var/www/Standard Features.tif' '/var/www/Standard Features.jpg'
and for some reason I'm getting 2 files being created:
-rw-r--r-- 1 root root 31809 Jan 27 23:53 Standard Features-0.jpg
-rw-r--r-- 1 root …

Aram Papazian
- 2,453
- 6
- 38
- 45
6
votes
3 answers
How to resize an image in imagemagick but keep an aspect ratio constant
I am trying to resize an image (using imagemagick) to keep it's current aspect ratio but fit it into a 4/3 container.
This is the command I have so far:
magick convert ./horse.jpeg -background white -gravity center -extent 4/3…

Some Guy
- 351
- 1
- 4
- 20
6
votes
1 answer
ImageMagick convert command Unable to Read Font
I'm integrating an ImageMagick command into a Firebase Function written in Node.js. I already have Ghostscript installed and have a full list of fonts available:
convert -list font
Path:…

EAA
- 121
- 1
- 11
6
votes
2 answers
Using Sphinx Extension to convert svg to pdf
My company is using Sphinx to create the manuals for our products. Our products are shipped with PDF and HTML documentations. We are using Windows as a sole developer environment.
A necessary requirement is to generate both kind of format from the…

Aleph0
- 5,816
- 4
- 29
- 80
6
votes
5 answers
draw grid with cells of specific size over an image
How can I draw a grid, 1px black borders no fill, over an image?
Each section of the grid should be 480x360px.
E.g., given this 1440x1080px solid white input:
It should have a 3x3 grid drawn onto it (because 9 480x360px rectangles fit into it) to…

theonlygusti
- 11,032
- 11
- 64
- 119
6
votes
2 answers
Convert PNG with transparency to JPG
Edit: The original title of this question was "Drawbacks of using -flatten option". However, after this question was answered, I decided to change its title, to make it easier found on Google. Also, new title is actually better describes what is…

john c. j.
- 725
- 5
- 28
- 81
6
votes
4 answers
Storing jpg images into a pdf file in a "lossless" way
Given a directory with several jpg files (photos), I would
like to create a single pdf file with one photo per page.
However, I would like the photos to be stored in the pdf file unchanged; i.e., I would like to avoid decoding and recoding.
So…

Jakob
- 238
- 3
- 12
6
votes
1 answer
Blend multiple images with ImageMagic
My problem is the following :
I have several .png files. Each file has a small spot of a certain color. All the files have the same size. My question is how to overlay them together so that the spots of different colors will be a mixture of this…

MirrG
- 406
- 3
- 10
6
votes
1 answer
ImageMagick's convert: no images defined
I tried to execute following command:
$ convert 1.png -filter 'Jinc ( +clone -negate -morphology Distance Euclidean -level 50%,-50% )' -morphology Distance Euclidean -compose Plus -composite -level 43%,57% -resize 12.5% 1.png
It gives me:
convert:…

JavaRunner
- 2,455
- 5
- 38
- 52
6
votes
1 answer
convert text with leading space to image using imagemagick
I'm trying to convert a text label into image using imagemagick's convert util following the guide at official page
I'm using the following command.
convert -background lightblue -pointsize 72 label:" spaces " label.gif
Although my…

padfoot
- 811
- 7
- 16
6
votes
1 answer
Combine and resize multiple images in a square using ImageMagick
So I want to create one large image of size 3600x2280 composed of three smaller images. The first should be resized to 1680x1050 and placed in the top left corner. The 2nd needs to be reiszed to 1920x1200 and placed immediately to the right of it…

djsumdog
- 2,560
- 1
- 29
- 55
6
votes
2 answers
ImageMagick - is it possible to create a static thumbnail (with only first frame) of an animated gif file?
Some users of my website want a possibility to upload gif images to their profiles. I would allow this but... Some gif files are very large - 1-2 MB and more and it's no a good idea to create galleries with 20 x 1 MB gif animations on a single page.…

user
- 751
- 2
- 10
- 18
6
votes
1 answer
ImageMagick - convert multipage PDF into one image
I am using ImageMagick to convert PDF files into images. However, some of the PDF's have multiple pages, which is proving to be a real problem.
My local convert is below.
exec("\"C:\\Program Files (x86)\\ImageMagick-6.8.5-Q16\\convert.exe\" -density…

Pooshonk
- 1,284
- 2
- 22
- 49
6
votes
1 answer
How can I create a YUV422 frame from a JPEG or other image on Ubuntu
I want to create a sample YUV422 Frame on Ubuntu from any image so I can code a YUV422 to RGB888 function for the sake of learning. I'd really like to be able to use a trusted tool to create a sample and convert back to a jpeg.
I've tried…

PhilBot
- 748
- 18
- 85
- 173
5
votes
3 answers
convert .heic image to jpg image format in laravel
I have added intervention/image package to convert image format in laravel.
image converted successfully but after uploading image quality was so bad.
Original Image
Uploaded Image
$img =(string) Image::make($image['base64'])
->resize(500,…

priyeshvadhiya
- 606
- 3
- 8
- 27