Skip to main content

All Questions

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
0 answers
138 views

adding labels/captions with imagemagick

I'm trying to make a script that will add the file name to a label under the images. I found out I can use ImageMagick on linux to do that, but I can't figure how to do it right. The documentation ...
guymii's user avatar
  • 21
2 votes
1 answer
2k views

imagemagick commandline resize to fixed width/height keeping scale

I am currently using PHP, but its resampling is not good enough for my needs. Suppose I have an image 200x200. I need it resize to 100x50. Then I need it resized scaled down cleanly as possible (here ...
Tom's user avatar
  • 439
2 votes
1 answer
686 views

Replace green pixels with gray using imagemagick `convert` command

I want to replace green pixels in this png file with gray ones. Based on official examples, I tried the command below and got this result filled with white not gray. It becomes white even if other ...
solzard's user avatar
  • 23
2 votes
0 answers
165 views

How can I use a widely-available cross-platform command line program to render a string containing emoji [closed]

I would like to use a widely-available command line program, the lighter-weight the better, to render a string containing emoji into a raster image. The rules are: must work on a minimum of OS X and ...
llimllib's user avatar
  • 121
0 votes
1 answer
3k views

How to extract pages 3, 4, 5 from a PDF from Windows command line?

Note: I have already found solutions for Linux (see How to extract all pages of one big pdf file?) or solutions with Python, or solutions with freeware GUI tools. How do I extract specific pages from ...
Basj's user avatar
  • 1,916
2 votes
0 answers
3k views

Batch converting PNG images to JPG using ImageMagick's Mogrify

I need to batch convert PNG files to JPG at a quality of 90% but also keep the resolution at 72dpi. I came up with this command: mogrify -format jpg -quality 90 -density 72x72 *.png or should I use?: ...
Zoltan King's user avatar
5 votes
5 answers
8k views

How can I convert a JPEG image to a RAW image with a Linux command?

I have a series of JPEG images taken with Canon Powershot to JPEG. How can I convert/transform them to RAW images? Not with a graphical tool, but from the command line! NB : Using raw images to stack ...
lolotux's user avatar
  • 107
1 vote
2 answers
1k views

ImageMagick with filenames with hyphens: "unrecognized option"

I am trying to use ImageMagick 7.0.10 on Windows 10 v2004 to crop images to a 256×256 square. After cding into the source folder, which has a file called "-s-u-c-k- .png - (hex-a-decimal).png&...
mic's user avatar
  • 522
3 votes
1 answer
2k views

How to compress gif effectively to reduce size?

We use gifs for our blog extensively. We used to embed tenor nano gifs(90px height maintaining aspect ratio, used for GIF previews and shares on mobile) in it. Now we wanted to create our own gifs and ...
Rohit Sai Janga's user avatar
2 votes
1 answer
2k views

Imagemagick: stack images horizontally/vertically and match height/width

For example 1.jpg, 2.jpg which are of dimension axb, cxd. If I run something like convert +append 1.jpg 2.jpg out.jpg. I'd like the out.jpg be (a+c)xb or (a+c)xd. If I run something like convert -...
thyu's user avatar
  • 263
2 votes
2 answers
3k views

Generate a PDF from the command line and fill up the page with as many copies of an image as possible?

I’ve been searching around a lot for this but wasn’t able to find a solution. How can I generate a PDF with an arbitrary paper format (say A4) and fill its pages with as many copies of an image as ...
mrzool's user avatar
  • 905
1 vote
2 answers
1k views

FFmpeg / imagemagick Cut image top and bottom

I am creating an image like this: ffmpeg -i chapter_Border.jpg -vf scale=220x176 chapter_Border.jpg -y'; how can I cut 15.5px from the bottom and 15.5px from the top of the image so that the image ...
utdev's user avatar
  • 229
4 votes
1 answer
4k views

Extract Thumbnail from CR2 Image using exiftool

I am attempting to extract a JPEG thumbnail image from a CR2 image, using exiftool, in Windows. I was successful in doing so using this program, QuickJPGFromCR2. From the description, it appears to ...
Johndt's user avatar
  • 145
76 votes
4 answers
81k views

How to crop an image using ImageMagick from the command line?

I am trying to crop a 640x640 image using ImageMagick on the command line. I need to remove about 20 pixels from the bottom part of the image all the way from left to right. A long strip along the ...
user avatar

15 30 50 per page