Questions tagged [mogrify]

15 questions
8
votes
1 answer

How do I batch-downsize images on linux, while keeping small images small?

I have a whole lot of photos and it's time to clean up the mess and free some disk space. I know mogrify is great to batch-resize things down. The problem is, in some directories I have small images mixed with the big ones. I'd like to…
Gabriel
  • 364
7
votes
2 answers

How to crop north and center with morgify in ImageMagick

Is there a way to crop an image centered horizontally, but not centered vertically? For example, here is how I would want an image cropped: However, using the command mogrify -crop 250x250 -gravity North cat.jpg, I get: Note I’m going to be doing…
7
votes
3 answers

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 Windows? magick mogrify -resample 72 -resize…
Regmi
  • 855
3
votes
2 answers

ImageMagick's mogrify tool darkens PNGs (when only trying to resize)

I'm trying to use the simple command to resize images and overwrite the originals: mogrify -resize 80% * My source images are semi-transparent PNGs that happen to be grayscale. The resize operation works, but is making the images darker. This used…
Jeff Ward
  • 518
3
votes
1 answer

Converting JPEG/PNG to TIFF with Imagemagick format results in a file size about 6.5 times bigger

I am told to use TIFF format for my raster images (originally I have both JPEG and PNG images) according to the editorial office of the journal I am submitting a research paper to. I tried ImageMagick to convert those images to TIFF format: magick…
2
votes
1 answer

Normalise levels, contrast, brightness of an image sequence

When making animated gifs or short stop-motion videos from an image sequence, I want them to have all similar levels so that the output looks smooth. It does not have to be a professional quality result, just a simple command to adjust for the…
wim
  • 3,327
2
votes
1 answer

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 is what I want). I run this in the windows command…
2
votes
1 answer

ImageMagick - How to avoid overwriting existing files with mogrify?

I have these files under ./: a.jpg b.jpg 256/a.jpg I'm running this command to convert files to 256px: mogrify -path ./256/ -resize 256x256 *.jpg But this command always overrides the existing files in 256, such as 256/a.jpg. Even though the…
1
vote
1 answer

Imagemagick's mogrify can't render text

I'm trying a simple mogrify test.png -annotate +100+100 '26082015' on a simple image, and no text is rendered. I also tried: mogrify test.png -font courier -fill black -pointsize 20 -annotate +100+100 "26082015" and mogrify test.png -gravity…
1
vote
4 answers

How can I run mogrify over the 3 million JPG files?

I have 3 million JPG files stored in a Linux CentOS 6 server. I want to change quality to %50 file size over 1 megabyte. I wrote this command but got an "argument list too long" error: $ find -type f -name "*..jpg" -size +1M | xargs mogrify -quality…
1
vote
1 answer

Invalid arguement error when trying to convert TIFS to JPGS using ImageMagick (across multiple directories)

I am trying to convert and resize some tif files to jpgs using ImageMagick (and move them to a new folder). I've gotten the command to work on individual folders using magick mogrify -format jpg -quality 50% -density 1200 -path "V:\Temp\test2"…
vm72
  • 13
  • 2
1
vote
2 answers

Does mogrify copy images that fall through resize filter?

I want to run the following command: mogrify -path /somepath -resize '1600x1600>' * are Images, that don't exceed the size of 1600x1600 copied to /somepath? (I am asking, since they would fall Through the '1600x1600<' filter) Greetings Niklas P.S.:…
niklasfi
  • 641
1
vote
2 answers

Convert (compress) JPEG images using mogrify keeping the original files in the same directory

I'm trying to convert(compress) a bunch of JPEG images using imagemagick command mogrify, keeping the original file in the same directory. I'm typing in terminal window : mogrify -quality 25% *.JPEG con-%002d.JPEG then I get the error : mogrify:…
1
vote
1 answer

Using Imagemagick to convert images to the video: background of the video is black, whereas the background of the pictures are white

I created a movie file from a set of PDF files using: mogrify -verbose -density 500 -resize 800 -format png ./*.pdf" convert -delay 600 *.png movie.mp4 on Microsoft Windows 10 (requires Imagemagick and Ghostscript to be installed). The first…
Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400
0
votes
0 answers

Why does mogrify output more files than what I gave as input

I converted some PDF files to PNG files using: mogrify -background white -alpha off -verbose -density 1000 -resize 1600 -format png ./*.pdf on Microsoft Windows 10 (requires Imagemagick and Ghostscript to be installed). My folder contained…
Franck Dernoncourt
  • 24,246
  • 64
  • 231
  • 400