3 ms·
> mogrify - resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas,
by captn3m0 5y ago
> mogrify - resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert(1) writes to a different image file.
The whole reason for mogrify's existence is that it overwrites the original image file.
- MontyCarloHall 5y agoIt would be much safer to take the sed approach and put mogrify‘s functionality under `convert -i[backup extension]`, and dispense with standalone mogrify altogether. Imagine having the command “sedd” aliased to `sed -i`. It would be a usability nightmare.
- linspace 5y ago> The whole reason for mogrify's existence is that it overwrites the original image file. Then it should not exist. To save one "rm", doesn't look like a good idea to me.
- rg111 5y ago> Then it should not exist. It definitely should. This becomed critical when you are doing batch processing large amount of images in a cloud instance or somewhere else where disk space is a constraint. I have used mogrify and similar custom solution when trying to batch-edit gigabytes of images while cleaning data for Computer Vision training.