Questions tagged [imagemagick-convert]

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.

1387 questions
15
votes
3 answers

"Image not found" when using ImageMagick on Sierra (beta)

I'm trying to put watermark on iOS app's appIcon. For that I'm following [Ray's][1] blog and I installed ImageMagick using binary release from [here][2]. I also added /bin and /lib in my paths using sudo nano /etc/paths so convert command seems to…
Hussain Mansoor
  • 2,934
  • 2
  • 27
  • 40
15
votes
1 answer

ImageMagick - Making 2 GIFs into side by side GIFs using IM convert

I have 2 GIFs that are the same length. I want to put the GIFs beside each other to have 1 GIF with both playing at the same time. I have tried to use the convert tool with: convert +append 1.gif1 2.gif output.gif However, this seems to blend all…
BenT
  • 3,172
  • 3
  • 18
  • 38
14
votes
1 answer

Resize to fit in a box and set background to black on "empty" part

I'm trying to obtain this result: fixed box size (133x100), the image should be resized but not stretched to fit inside that box, the empty space should be filled with black. I'm actually trying with this command: convert -background black -gravity…
Francesco Belladonna
  • 11,361
  • 12
  • 77
  • 147
14
votes
2 answers

Python subprocess: wait for command to finish before starting next one?

I've written a Python script that downloads and converts many images, using wget and then ImageMagick via chainedsubprocess calls: for img in images: convert_str = 'wget -O ./img/merchant/download.jpg %s; ' % img['url'] convert_str +=…
Richard
  • 62,943
  • 126
  • 334
  • 542
14
votes
7 answers

Defining the file order for ImageMagick convert

I have a bunch of PNG files named foo.png I wish to convert to TIF animation. is a number varies from 0 to 25 in leaps of five. ImageMagick place foo5.png last in the animation while it is supposed to be second. Is there a way, apart from…
Yotam
  • 10,295
  • 30
  • 88
  • 128
14
votes
2 answers

In ImageMagick, how can I scale an image down just enough so it's cropped to particular dimensions?

For example, if I have a large image that's 1600x1200, but I want to generate a thumbnail that is 250x200 (a different ratio of height and width) -- how can I scale this down to size and then center crop it? Is this possible in one line using…
ensnare
  • 40,069
  • 64
  • 158
  • 224
13
votes
2 answers

ImageMagick, What does Q8 vs Q16 actually mean?

Under Windows, I need to choose between Q8 and Q16. I know that Q8 are 8 bits-per-pixel component (e.g. 8-bit red, 8-bit green, etc.), whereas, Q16 are 16 bits-per-pixel component. I know also that Q16 uses twice memory as Q8. Therefore, I must…
zeus
  • 12,173
  • 9
  • 63
  • 184
13
votes
2 answers

How do I convert a base64 image?

I am trying to use the "convert" command-line tool from ImageMagick. I have a base64 encoded png file and I need to convert it to another format. I am looking at documentation and a forum discussion which suggests that I should be able to use this…
skiphoppy
  • 97,646
  • 72
  • 174
  • 218
13
votes
3 answers

ImageMagick "color to alpha" (like The GIMP)

I'm trying to do what The GIMP does when selecting "color to alpha" with an actual colour. I've got an image that has the color #a0132e in it, and I want that converted to transparency. Not only that exact colour, but any colour diverting from it,…
Thany
  • 285
  • 2
  • 11
13
votes
2 answers

How to solve ImageMagick's "Fontconfig warning: ignoring UTF-8: not a valid region tag" error?

I want add some text on an image file with ImageMagick, This is what I entered: convert -font Verdana label:"Text 123" pic.jpg pic_new.jpg But it returns an error as follows: Fontconfig warning: ignoring UTF-8: not a valid region tag The generated…
AGamePlayer
  • 7,404
  • 19
  • 62
  • 119
13
votes
0 answers

Text font issues with rsvg-convert

We were using rsvg-convert for SVG to PDF conversion and it was working like a charm, till we encountered text. Here's an example- Command: rsvg-convert -w 842 -f pdf -o testing.pdf testing.svg Here's the SVG:…
12
votes
4 answers

How to speed up a complex image processing?

Every user will be able to upload 100 TIFF (black and white) images. The process requires: Convert tif to jpg. Resize image to xx. Crop image to 200px. Add a text watermark. Here is my PHP…
user4397664
12
votes
2 answers

ImageMagick memory usage

I have 100 PNG-files and each of them is 8250x4090 big. I need to append them with Imagemagick to one big PNG-file (82500 x 40900) so that I have 10 rows and 10 columns . I know how the code must look like but I get the errors: convert.exe: unable…
Selphiron
  • 897
  • 1
  • 12
  • 30
12
votes
3 answers

imagemagick convert CMYK pdf to RGB jpeg or PNG and preseerve colors

I have a cmyk pdf that I am trying to convert to a RGB jpeg or png file but have the colors stay pretty close to what the CMYK version is (compared to how photoshop does it) I am trying the following command but the colors change drastically from a…
Yeak
  • 2,470
  • 9
  • 45
  • 71
12
votes
1 answer

ImageMagick using more than 2GB of memory to convert PDF files

ImageMagick is using huge amounts of memory to convert PDF files - more than 2GB. The command I'm using is: convert -density 250 -resize 1280x myfile.pdf -interlace plane -strip -quality 40 -alpha flatten myfolder/myfile-%03d.jpg How can this be…
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
1
2
3
92 93