Originally Posted by
Toz
If I'm understanding correctly, that you are trying to crop a number of files simultaneously, try a command like this:
Code:
for file in *.jpg; do convert -crop widthxheight+padding-left+padding-top "$file"; done
...just make sure to replace widthxheight, padding-left, and padding-top with actual values
It will cycle through all of the jpg files one at a time, perform the crop operation overwritting the file.
I just get a whole bunch of these, one for each file but I will try it next time I restart my computer and change my drivers because I did something with the code I was using before and it gave the same thing the second time I used it but the first time it froze my computer so I think it just broke something.
Code:
convert.im6: no images defined `filename.jpg' @ error/convert.c/ConvertImageCommand/3044.
Originally Posted by
evilsoup
I think you should use mogrify for these things. It's a part of ImageMagick and comes with convert (and uses the same syntax, so most things you read in the convert guides will work with mogrify), but is designed to modify files in-place rather than writing to a separate output file.
Code:
mogrify -crop widthxheight+padding-left+padding-top ./*.jpg
This one worked for me! Even 100000+ files and it didn't even crash my computer this time.
......unfortunately RecordMyDesktop only has a maximum of only 50 FPS.
Bookmarks