[SOLVED] reading multiple images over standard input
Posted: 2011-03-18T05:48:12-07:00
Hello.
I would like convert to be able to read more than one file from standard input on Linux. Instead of this:
I would like the ability to do this:
I want to process a stream one at a time without creating any temporary files, for use in this situation:
I cannot find anything about this on the mailing list or previous forum posts. If I missed something let me know.
Assuming there is not an easy current solution, I am not asking for a feature, because I assume this behavior is probably not intuitive for most users. Instead, I would like to write a custom patch for the library for my own use. Would this be difficult?
I would like convert to be able to read more than one file from standard input on Linux. Instead of this:
Code: Select all
for i in file*;
do
cat file | convert - -some-transform jpeg:-
done
Code: Select all
cat file* | convert - -some-transform jpeg:-
Code: Select all
ffmpeg input.mpg -f image2pipe -vcodec jpeg | convert - -some-transform jpeg:- | ffmpeg -f image2pipe -vcodec jpeg output.mpg
Assuming there is not an easy current solution, I am not asking for a feature, because I assume this behavior is probably not intuitive for most users. Instead, I would like to write a custom patch for the library for my own use. Would this be difficult?