Questions tagged [mogrify]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
537 views

Preserve image's modification time with mogrify/imagemagick

I have a huge collection of family photos which I don't really need full resolution of. I want to use mogrify but I tried it on a sample set of images and it seems that it sets modification time of ...
0
votes
1answer
165 views

Find gif/jpeg files with png extension and convert to png

First command find and list jpeg/gif files with png extension. Second command convert a file to png. find . -type f -name "*.png" | xargs -L 1 -I{} file -i {} | grep -v 'image/png; charset=binary$' ...
9
votes
7answers
8k views

Use mogrify to resize large files while ignoring small ones

I'm running the following command: mogrify -resize '400x400>' *.png Notice the ">". Supposedly it will ignore smaller files, but although it doesn't resize them, it edits them (modification date ...
3
votes
2answers
205 views

Loop through files and convert BMP files to JPG

I have a folder of images. All have the JPG extension but when running file against a few, they're coming back as bitmap e.g. 25818.jpg: PC bitmap, Windows 3.x format, 357 x 500 x 24 My question is ...
3
votes
0answers
507 views

Convert NEF to JPG with optimal brightness

There are multiple tools for converting Nikon raw images (.NEF) to JPEG, as well as there are multiple discussions on this topic (e.g. Converting .NEF to .JPG). My question regards optimal settings ...
2
votes
2answers
311 views

How do I use mogrify convert only on files with a certain creation date?

I'm creating an animated gif using mogrify's convert. However, at the moment I run in on a folder with dozens of images in it, and I just instruct it to use all of the images it finds. However, I'd ...
1
vote
2answers
177 views

Find files with 32 character long recursively in a directory and apply a command

I have folders and files looks likes this: /thumbs/6b0/6b029aab9ca00329cd28fd792ecf90a.jpg /thumbs/6b0/6b029aab9ca00329cd28fd792ecf90a-s.jpg /thumbs/d11/d11e15a72e20e14c45bd2769d763126d.jpg /thumbs/...
0
votes
1answer
570 views

Resizing/Processing only images in folder larger than specified height? [duplicate]

I have a folder with JPG images, some of which have a height dimension larger than 1900 pixels. I need a command that will ignore the images with a height dimension lower than 1900 pixels, while ...
0
votes
1answer
412 views

Imagemagick mogrify with shadow geometry

How can I specify the size of a shadow with imagemagick? This command works: montage foo.jpg bar.jpg foobar.jpg -background lightgray -geometry 1031x1642+57+57 -shadow -monitor -tile 3x1 out.png ...
1
vote
1answer
1k views

How to create a timed video from still images with specific time between each image?

I want to create a video from still images. My images are: 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg 6.jpg 7.jpg 8.jpg 9.jpg Each of them I want to show for a specific duration, between 1-10 seconds: 1.jpg: 2 ...
2
votes
2answers
3k views

Convert a lot of .tif files using imagemagick's mogrify command

I have a lot of tif images in a directory. So I try to convert them into jpg format. I use this command : mogrify -format jpg *.tif But I get an error... an error for each image in fact: mogrify: ...