is there any lightweight command line batch image cropping tool(Linux or Windows) which can handle a variety of the formats ?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- CV2 Image Error: error: (-215:Assertion failed) !s
- Replace image attributes for lazyload plugin on im
- How to display an image represented by three matri
相关文章
- Use savefig in Python with string and iterative in
- Where does this quality loss on Images come from?
- Specifying image dimensions in HTML vs CSS for pag
- How to insert pictures into each individual bar in
- How do I append metadata to an image in Matlab?
- Img url to dataurl using JavaScript
- Click an image, get coordinates
- C# Saving huge images
I found
nconvert
pretty handy so far.Imagemagick's convert does the trick for me (and much more than cropping):
crops 100 pixels off the left border, 10 pixels from the top.
crops 100 pixels off the right, and so on. The Imagemagick website knows more:
http://www.imagemagick.org/Usage/crop/#crop
Imagemagick is what you want -- tried and true.
This script loops through all the sub-folders and crops the .jpg files.
In Linux you can use
for CLI image manipulation
I have scanned some pages and all ~130 pages needs the lower ~1/8 of the page cut off.
Using
mogrify
didn't work for me,However
convert
did:I learnt this here under the Inline Image Crop section.
Notice my syntax: I had to put my geometry in brackets:
[]
.Using the successful syntax above but with mogrify simply didn't work, producing: