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
12
votes
3 answers

Creating a semi-transparent PNG with ImageMagick/convert

I have PNG files that I would like to convert the whole image to be semi-transparent. The image will be referenced in a KML file as an icon overlay for use in Google Earth/Maps. The following examples have been suggested to me using the ImageMagick…
user1502835
  • 271
  • 1
  • 2
  • 6
12
votes
5 answers

Efficiently generating thumbnails with ImageMagick and convert

I'm looking to efficiently generate various sized thumbnails with ImageMagick's convert utility in Python. Some of my image files are quite large (~15MB JPGs). One way I could do it would be to take the full-sized image, and to generate the various…
ensnare
  • 40,069
  • 64
  • 158
  • 224
11
votes
0 answers

imagemagick reduce size of pdf

I need to automatically reduce the size of some user uploaded pdfs so that they can be sent via email. I have a little imagemagick oneliner that reduces the size for me: convert -density 120 -quality 10 -compress jpeg original.pdf…
Don Giulio
  • 2,946
  • 3
  • 43
  • 82
11
votes
2 answers

ImageMagick ghostscript 'delegate' security policy blocking conversion

This seems to be related to my previous question where there was a ghostscript bug and thus ImageMagick devs made a security policy blocking PDF conversion. This was overcome by adjusting the policy file such that rights changed from "none" (by…
T. Zack Crawford
  • 7,646
  • 3
  • 11
  • 18
11
votes
1 answer

Imagemagic convert: How can we set a page "a4 Landscape"?

Imagemagic convert: How can we set a page "a4 Landscape"? image Files and Folder structure: number of jpg files: 2400. separated into 30 folders: 80 jpgs in each folder. Mission: create a pdf file for each folder, containing 80 images. jpg image:…
doctor
  • 107
  • 1
  • 8
11
votes
4 answers

How to deskew a scanned text page with ImageMagick?

I have scanned documents that weren't scanned perfectly straight so the text is not orientated perfectly horizontally, i.e. perhaps 10° of a slope on each line. My understanding is that the deskew option in ImageMagick should solve this, for…
carbontracking
  • 1,029
  • 4
  • 17
  • 33
11
votes
4 answers

ImageMagick to convert SVG to PNG with transparent background

I'm using ImageMagick via command line to convert a simple SVG to PNG with a transparent background, but for some reason it's not working. I've already tried some of the suggestions noted here (both convert -background none in.svg out.png and…
Calyo Delphi
  • 329
  • 1
  • 3
  • 16
10
votes
2 answers

ImageMagick convert rotate crop

The rotate option in ImageMagick's convert tool rotates the image but adds background color to fill the gaps. I'm looking for a way to rotate and then crop the largest rectangle containing content of the image. Is it possible with convert? Edited by…
Mohammad Moghimi
  • 4,636
  • 14
  • 50
  • 76
10
votes
1 answer

ImageMagick sampling factor

I have been using ImageMagick command line tool for jpeg compression of the images. However, I'm trying to understand the role of sampling factor. It says the sampling factor is used to specify the block size i.e. 8x8 or 16x16. However, I can't find…
pree
  • 2,297
  • 6
  • 37
  • 55
9
votes
1 answer

Difference between caption, draw, annotate, label while adding text to ImageMagick

I'm trying to add text to an image using ImageMagick. I see multiple examples using draw, label, caption, annotate et al. What is the difference between the above? I am able to test the results of the above commands with CLI, however am facing…
Mayuri M.
  • 121
  • 1
  • 2
9
votes
3 answers

How to colorize a black-transparent PNG icon with ImageMagick

How do I a colorize a black PNG image that has a transparent background using ImageMagick? Use case: You have several PNG images like this: And I want to colorize them like this: I want to use ImageMagick's convert command, allowing for scripting…
Thibault D.
  • 10,041
  • 3
  • 25
  • 56
9
votes
5 answers

Trying to convert 200 jpg files to an mp4 w/ ImageMagick. Receiving the same error over and over again

I'm trying to convert 200 .jpg files that were .ppm files into one .mp4 file. In the same directory as the .jpg files, I ran this code: convert -delay 6 -quality 95 test*ppm movie.mp4 and received this error message: convert: no images defined…
fmartin
  • 231
  • 1
  • 2
  • 5
9
votes
5 answers

ImageMagick to verify image integrity

I'm using ImageMagick (with Wand in Python) to convert images and to get thumbnails from them. However, I noticed that I need to verify whether a file is an image or not ahead of time. Should I do this with Identify? So I would assume checking the…
Kiarash
  • 7,378
  • 10
  • 44
  • 69
9
votes
1 answer

How to convert svg to eps using Imagemagick?

I am trying to convert svg image to eps using Imagemagick. I am able to convert the image using Imagemagick, but the image size is too high when compared to the original image size and the content is not displayed correctly compared to the svg.
user1417638
  • 221
  • 5
  • 13
9
votes
3 answers

ImageMagick: how to achieve low memory usage while resizing a large number of image files?

I would like to resize a large number (about 5200) of image files (PPM format, each 5 MB in size) and save them to PNG format using convert. Short version: convert blows up 24 GB of memory although I use the syntax that tells convert to process…
1 2
3
92 93