Re: two images (again)
edgar suarez kummers <[email protected]>
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <CAJuMiSJnEX78k23gut=CdFxtpEYBiwfVsg-2Kc=sbnpkp9PwzQ@mail.gmail.com> |
Dear Members of the SED group: Thank you very much for your interest on my questions. I'm very glad to meet you and know about your skills. regards edgar -- edgar suarez kummers ******************************************************** message from: [email protected] Did you look here: http://www.imagemagick.org/Usage/windows/#why in particular this snippet: " Specialities and pitfalls Quite extraordinarily for Windows programs, IM allows images to be written to stdout and read from stdin and thus use piping to cascade image processing tasks. The operation convert -size 128x128 xc:white gif:- | convert - test.gif is equivalent to convert -size 128x128 xc:white test.gif In the first command of the pipe, the minus operator tells IM to write the image to stdout, while the minus operator in the second command of the pipe tells IM to read the image from stdin. This was of proceeding allows to avoid the explicit use temporary files. It is especially useful if some command does not offer certain operations, for example trimming: montage -tile 2x2 -geometry 400x300+60+60 1.png 2.png 3.png 4.png miff:- | convert - -trim montage.png As a consequence of this feature, textual output is usually written to stderr instead of stdout. For example: if you want to redirect the textual output of Compare to a text file, you would have to write compare -metric PSNR 1.png 2.png dif_1_2.png 2>result.txt So you have to redirect stderr ("2>") to the text file, not stdout ("1>" or just ">"). " Maybe the only problem is the lack of proper redirection. (see^ directly above) Maybe, [Non-text portions of this message have been removed]