Resize only if larger
See original GitHub issueWould it be possible to add an option to performs the a resize command only if
the original file is larger than the dimensions specified. i.e. similar to the
ImageMagick / GraphicsMagick angle bracket use, e.g.
-size '200x200>'
Original issue reported on code.google.com by oliver.k...@gmail.com
on 14 May 2011 at 8:57
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:16 (1 by maintainers)
Top Results From Across the Web
resize - Only shrink larger images using ImageMagick to a ratio
If you want ImageMagick to shrink your large images but keep small images untouched, use the ">" operator: convert -resize '180000@>' ...
Read more >Use mogrify to resize large files while ignoring small ones
I think mogrify systematically rewrites the file, so your only hope is to filter the list first, as suggested by jippie.
Read more >Resize images only if larger than target dimensions - HUGO
Is there a way to tell the .Resize method to only resize if the source image is smaller than the requested dimensions?
Read more >Resize if image is bigger than a specific size #1075 - GitHub
With ImageMagic you can run: mogrify -resize '800x800>' * Which will resize a file only if its width OR height is bigger than...
Read more >Shink image if width is larger than - ImageMagick
I would like to shrink the image if the width is larger than 460px. by that code it resizes all images to width...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Original comment by
song...@gmail.com
on 17 Jan 2014 at 5:42Supersede with #152. (The automatically imported issues are a little hard to read…)