How can I combine these two commandlines?
Posted: 2011-03-31T16:23:28-07:00
How can I perform these two example commands as one command?
In my current method I just put the command from step1 into the parenthesis of step2, but it think i'm doing a lot of extra work like that.
This is my first time using IM. I read the manual and I tried a couple dozen variations with -clone and similar commands but I can't figure it out.
Incidentally, my final output is destined for an e-ink screen (Kindle K3, 167ppi) so any tips/filters to improve contrast (like unsharp) would be helpful.
Please help,
thank you.
Code: Select all
convert input.jpg -strip -colorspace Gray -filter Lanczos -resize 800 -unsharp 1.1x1.0+1.0+0.05 step1.jpg
convert -size W1xH1 -depth 8 canvas: \
(step1.jpg -crop W2xH2+X1+Y1 ) -geometry +X2+Y2 -composite \
(step1.jpg -crop W2xH2+X3+Y3 ) -geometry +X4+Y4 -composite \
...etc... \
-quality 92 output.jpg
This is my first time using IM. I read the manual and I tried a couple dozen variations with -clone and similar commands but I can't figure it out.
Incidentally, my final output is destined for an e-ink screen (Kindle K3, 167ppi) so any tips/filters to improve contrast (like unsharp) would be helpful.
Please help,
thank you.