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
0
votes
1 answer
ImageMagick's Convert for EPS to JPEG not being called properly
M primary goal is to take in a series of .eps files and convert them to .jpg using ImageMagick and GhostScript. I have both ImageMagick and GhostScript installed in a Windows environment. I am referencing ImageMagick's convert command using Process…

antihero989
- 486
- 1
- 10
- 32
0
votes
1 answer
ImageMagick Set Background Colour
I am attempting to use the following line of code to set the background colour of Image 1 to white.
(I.e. The first image 'Image1.png' needs to be cleared and become a blank white image. I then overlay Image 2 on top of this blank image)
Here is…

samb90
- 1,063
- 4
- 17
- 35
0
votes
1 answer
ImageMagick media conversion exceptions
We are getting a few exceptions when we try to convert an image on a Linux box. When we try the same media conversion on a Windows 8 machine it works perfectly, without any exceptions.
The same version is being used on both the Linux and Windows…

sjeev
- 43
- 5
0
votes
1 answer
Mac: Cannot convert .pdf to .png - GS Error
I recently setup a new Macbook with 10.9.4 installed. But since that, I cannot use an script to convert PDF files to PNG anymore. It seems like my ImageMagick installation cannot find Ghostscript. I tried to install both several times(using .pkg…

christopher
- 520
- 3
- 10
0
votes
1 answer
Black background (instead of transparent) after drop shadow in ImageMagick
I'm trying to drop a shadow to a composition of two images: one JPEG/PNG and one SVG vector. With the PNG image everything works seamlessly. Now, trying with the JPEG, I get a black background instead of the expected transparent background.
The…

nandilugio
- 315
- 2
- 11
0
votes
1 answer
rounded rectangle mask created for small squares using imagemagick is not correct
I am creating a rounded rectangle mask using
convert -size 256x256 xc:none -draw "roundrectangle 0,0,256,256,47,47" mask.png
This works fine. However using the same command for 16x16 as follows
convert -size 16x16 xc:none -draw "roundrectangle…

sachinkundu
- 35
- 1
- 5
0
votes
1 answer
ImageMagick convert different results on two different systems
I have two systems one is CentOS 6.2 Final, and another is Ubuntu 14.04, they both have ImageMagick installed on it. The following versions are installed.
On Ubuntu:
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright:…

Naveen Agarwal
- 559
- 4
- 18
0
votes
4 answers
Ubuntu covert all images in a folder
I am using a script for converting all the images in my folder to flop operation. The script is like this:
for f in *.jpg; do
new="${f%%.jpg}_flop.jpg";
convert "$f" -flop -quality 100 "$new";
done
Now I have found that there may be also…

sop
- 3,445
- 8
- 41
- 84
0
votes
1 answer
how to use convert to center an 512x512 jpg onto a blank 1024x500 image?
I have a 512x512 jpeg file, but I need a 1024x500 image jpegfile. I thought I could do something use convert like this:
convert my512x512.jpg -page "1024x500" my1024x500.jpg
But when I open my1024x500.jpg it is still 512x512. I have also tried…

Red Cricket
- 9,762
- 21
- 81
- 166
0
votes
1 answer
pass a Buffer object into imagemagick library correctly
I'm writing an application to leverage this library into a general purpose image resizing utility
Have it working with local files, attempting to update it with http streams.
Looks like in theory its resize wrapper will take a srcData object, which…

fox
- 5,569
- 3
- 16
- 13
0
votes
1 answer
Image magick to put images in row and then generate reflection
I was wondering if I can use imagemagick to produce a result image like this
My initial image will be like this
I am able to create the dark image to be put in the background like this -
convert -brightness-contrast -20x10…

nasaa
- 2,701
- 8
- 47
- 76
0
votes
2 answers
Ghostscript convert files from external url
I am trying to convert an external file (e.g http://url.com/file.ext) using Ghostscript and PHP. It always says undefined filename but if I change the url to my server/local url it works. Is it really possible to convert external file?
"C:/Program…

Yuusha
- 175
- 1
- 3
- 10
0
votes
0 answers
background color after distortion - imagemagick
I am trying to render a text and then apply perspective transformation to that image using imagemagick convert command .
I am trying to use the following command :
convert a.jpg -matte -distort Perspective-Projection…

Deepesh
- 99
- 2
- 11
0
votes
2 answers
PHP ImageMagick split large image to tiles
I am trying to split a large image to smaller tiles. I tried it using PHP ImageMagick cropImage() and I could do it successfully with the following code.
for($w = 0; $w < ($large_image_width/$tile_width); $w++){
for($h = 0; $h <…

Jithin
- 2,594
- 1
- 22
- 42
0
votes
2 answers
Convert PDF portrait to image landscape using Imagemagick and PHP
I want to convert a multipages PDF to a series of png files, while the PDF is portrait and png file is landscape, using imagemagick. I have achieve the conversion from PDF portrait to png protrait(code attached below). But have no idea how to make…

Bunny
- 3
- 4