Resize all pictures in list to largest size in list
Posted: 2014-07-28T00:31:42-07:00
Hello
Say you have a bunch of files in a folder and you want to do some "-evaluate-sequence mean" on them. Right now it will fail if the pictures in the list are different. The inspiration comes from http://blog.patdavid.net/2013/09/mean-a ... ideos.html
What I want is to have IM resize the pictures before doing the -evaluate stuff.
Is that possible? It doesn't matter if the solution is in windows or linux format
It's all part of a larger plan to have some sort of script/program that will take an argument (from the -evaluate-sequence possibilities), resize the images to the largest size (the current problem), then do the log/mean/median/cos/etc function on the pictures (perhaps via xargs so I don't run into over use of ram problems)
Example workflow:
$ IMProgramName log 50
1) resize all pictures in list (via ls or similar)
2) Create log folder in current folder
3) ls resizedPictures*.jpg | xargs 50 pictures at a time (where 50 comes from the argument of IMProgramName)
4) convert "$0" "$@" -evaluate-sequence log log/"$0" (where "log" comes from the argument of IMProgramName)
5) exit
Does that make sense or have I been smoking some funny tennis shoes too much? (And I'm not expecting a full program/script/thing for the larger plan, btw!)
Best regards
Mads Johansen
Say you have a bunch of files in a folder and you want to do some "-evaluate-sequence mean" on them. Right now it will fail if the pictures in the list are different. The inspiration comes from http://blog.patdavid.net/2013/09/mean-a ... ideos.html
What I want is to have IM resize the pictures before doing the -evaluate stuff.
Is that possible? It doesn't matter if the solution is in windows or linux format
It's all part of a larger plan to have some sort of script/program that will take an argument (from the -evaluate-sequence possibilities), resize the images to the largest size (the current problem), then do the log/mean/median/cos/etc function on the pictures (perhaps via xargs so I don't run into over use of ram problems)
Example workflow:
$ IMProgramName log 50
1) resize all pictures in list (via ls or similar)
2) Create log folder in current folder
3) ls resizedPictures*.jpg | xargs 50 pictures at a time (where 50 comes from the argument of IMProgramName)
4) convert "$0" "$@" -evaluate-sequence log log/"$0" (where "log" comes from the argument of IMProgramName)
5) exit
Does that make sense or have I been smoking some funny tennis shoes too much? (And I'm not expecting a full program/script/thing for the larger plan, btw!)
Best regards
Mads Johansen