Skip to main content

All Questions

2 votes
1 answer
384 views

Best ImageMagick parameters to upscale image containing text

What are the best ImageMagick parameters to upscale an image that contains text in Latin alphabet? Take this image as example: I did some experimenting, for example: magick convert in.png -filter ...
robertspierre's user avatar
2 votes
1 answer
1k views

ImageMagick Mogrify Compress Images Recursively

Windows 10. ImageMagick v7.1.0-62 I need to compress and optimise a lot of .jpg images using ImageMagick. I am using the following command, which is working (this overwrites the original files which ...
jonboy's user avatar
  • 231
1 vote
1 answer
1k views

How do I properly downscale an image from 300 dpi down to 72 dpi using imagemagick?

As the title says, I want to know the proper way to downscale my image that is originally 300 dpi down to 72 dpi while still maintaining the same quality of the image. By quality, I don't mean the ...
user9564371's user avatar
0 votes
1 answer
210 views

Can I encode a PNG image losslessly to another format and decode it back into an identical file?

I am archiving roughly 150gb of PNG assets. In an effort to increase the compression ratio of the images, I am trying out FLIF (Free Lossless Image Format). This provides an excellent compression ...
w0f's user avatar
  • 139
7 votes
3 answers
9k views

mogrify - how do you recurse through subfolders in Windows

I thought there was a simple switch in mogrify command options that tells it go through subfolders as well. I didn't find any. On Linux, the "find" command seems to do the trick, how do you do this on ...
Regmi's user avatar
  • 855
1 vote
1 answer
318 views

ImageMagick convert: Placing text on a book cover

I am trying to make an eBook cover via ImageMagick, to be incorporated in a larger project after it works. I want to get to geometry and gravity later, but at present I have two relevant images: A ...
Christos Hayward's user avatar
5 votes
3 answers
5k views

Trimming exterior empty space with ImageMagick does not work on scanned documents

Given an image that has some actual content inside and usually some unwanted white or black or transparency around that, I would like to trim or crop the exterior parts using ImageMagick. The ...
caw's user avatar
  • 208
1 vote
1 answer
10k views

Fixing corrupt PNGs missing the IEND chunk

I have .png files outputted by a tool that converts .emfs to .pngs but that doesn't add the IEND chunk to the end. Therefore, other tools, like ImageMagick, won't go near them as they detect them as ...
Titan's user avatar
  • 231
9 votes
4 answers
12k views

Creating and splitting large multipage TIFF images

I need to both create and split multipage TIFF images, ranging from 2 to almost 100 pages (A4, 300 dpi, 2500×3500 px). The job is performed periodically by a script on an x64 Linux server. Currently I'...
Karol S's user avatar
  • 248
1 vote
1 answer
140 views

Resize/crop multiple files while preserving certain areas?

I have 176 JPEG images that are 450x800 in size, and was wondering if there was a way to essentially resize them, but while preserving their content in certain areas (currently I'm only hoping for the ...
Wuuuf's user avatar
  • 13
3 votes
1 answer
3k views

GraphicsMagick error reading PNG file

When trying to read a large PNG file, GraphicsMagick command gm convert pallaso1.png pallars-sobira.jpg just displays this error c:\progs\GraphicsMagick\gm convert: Read Exception (PALLASO1.PNG). ...
PA.'s user avatar
  • 716
0 votes
0 answers
713 views

Comparing two images: get the XY location of any differences found

I'm trying to compare two images using the ImageMagick Compare module; everything seems okay, but I want to know the exact XY locations of the 'differences' found. How can I get this? I already ...
Aries's user avatar
  • 101
36 votes
8 answers
35k views

Square thumbnails with ImageMagick (convert)?

How to create square/cropped thumbnail using ImageMagick ? Cropping like below.
marioosh's user avatar
  • 3,591
7 votes
3 answers
8k views

Resizing and cropping images to 6x4 to width of 1024

I have a mixed set of images, each one having a slightly different resolution with a slightly different aspect ratio from the other images. I have tried using commands like: convert -resize and: ...
oshirowanen's user avatar
  • 1,740