Harry -
THX for your detailed answer.
On May 16, 3:05 pm, Harry van der Wolf <
hvdw...@gmail.com> wrote:
> I understand and respect your opinion. For the time being it remains an
> inconvenient and unsatisfactory situation for the users.
I'm not happy with the current
capabilities of Enblend/Enfuse when it comes to
multi-layer images, either. They allow them,
but they do not support them -- to use
Stroustrup's distinction.
A quick-and-dirty solution to your problems
could be a command-line option that dumbs down
the new algorithm, e.g.
--first-layer
And given this option, Enblend/Enfuse will only
process the first directory of _each_ TIFF image
that has been passed to them.
I have played around with Ingemar's
suggestion to add kind of an index expression to
each input file, like
image1.ext[m] image2.ext[n] ...
where m, n, ... are the layers' indexes. This
syntax, however, raises at least two problems.
(i) What happens with filenames that end with
with exactly our index expression? Do we need a
special quoting syntax, and how ghastly should
it look like?
(ii) Attaching the index expression directly to
the filename knocks out the shells' filename
expansion. This is as ugly as it is hard to
circumvent. Consider:
enblend `for x in image*.tif; do echo $x[1]; done`
Another idea that has come to my mind is
introducing layer-selection operators as
arguments. I'm not sure yet, whether to make
them prefix or postfix. The added
complexity would drive Dr. Cuddy up the wall and
through the roof -- principally a good thing. :-)
Anyhow, the essence is separating the image
filenames from the layer specifications. This
makes the new command line look like the
following (show for prefix operators):
enblend '[n]' image11.ext image12.ext ... \
'[m]' image21.ext image22.ext ... \
...
The layer-selection operator is valid for all
files to its rhs until another operator shows
up, thus minimizing the number of keystrokes,
yet retaining all the power of layer-selection
expressions.
BTW, problem (i) remains, but at least we got
rid of (ii). And please remember, that we'd had
to teach the response files the new operator
syntax, too.
Cheers,
Chris