> Sent: Wednesday, November 25, 2020 at 7:07 PM > From: "Gavin Smith" <[email protected]> > To: "Christopher Dimech" <[email protected]> > Cc: "help-texinfo gnu" <[email protected]> > Subject: Re: Width and Height in @image for Html Output fail > > On Thu, Nov 19, 2020 at 07:51:30PM +0100, Christopher Dimech wrote: > > It occurs to me that one requires two image versions: > > (1) An image for high-resolution pdf; and (2) Another > > image for low resolution image html. > > > > Can we think of only having one command that calls > > @image, rather than two (i.e. rather than having @iftex > > and @ifhtml)? > > > > For instance, > > > > @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg,,,,.png} > > > > For pdf output will use the file > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.png > > > > For html output will use > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.html.png > > > > Or the like. > > If we could make @value work properly in the first argument of @image, > then this could be used to configure image resolution. So you > would do > > @image{../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.@value{imageres},,,,.png} > > and elsewhere do > > @set imageres high > > to look for a file > > ../Ideogr/Ch03b--Chmed/igc03--01--Sicl--CircAmRg.high.png > > I will look at the @value issue.
Yes, allowing @value would allow various possibilites and likely solve other things, as you have mentioned. Kind Regards Christopher
