At 08:08 PM 10/15/2002 +0100, Robert O'Connor wrote:
>On 15 Oct 2002 at 10:05, Fringe Ryder wrote:
> > Looking at the source code, my guess is that providing NO alt_maxwidth and
> > alt_maxheight disables the alternate images. That's fundamentally
> > different from them being 0; If they're set at all, they're applied. I
> > don't quickly see what happens when you append an image with size
> > attributes of zero, but none-the-less it does call append.
> >
> > This would be an easy fix if we can all agree on expected behavior. I
> > don't see a special value for zero from a quick peruse, and I do see
> > precisely where the code could be modified to prevent linking an alternate
> > image if either alt_maxwidth or alt_maxheight was set to zero.
>
>Nice catch, that is it exactly.
<snip>
>The current situation of "None" won't work, I don't think, because if a
>section of the
>plucker.ini/.pluckerrc says a
>alt_maxwidth=
>to try to say don't include any alternate renditions, this won't work.
>Because instead, it will
>go up the heirarchy and use the values from alt_maxwidth from [DEFAULT]
>section. There needs to
>be a value, like a "0" in the section, such that a channel section can
>override the [DEFAULT]
>section.
Okay, how's this for an alternative... leave the current behavior as it is,
with the addition of a new value for alt_maxwidth/alt_maxheight of "noalts"
or of "-1" or of "none".
My fear is that changing current behavior is nearly always bad to
someone. But this would allow the user to override the default behavior at
the specific level by using values that are not currently in-use and have
no current expected behavior. And it's still a smallish, simple addition.
Tony McNamara
_______________________________________________
plucker-list mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-list