Problem: image inclusion

Christoph Spiel <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Organization INRIA
Message-ID <20080818103815.A10562@hydra>



Hello -

        I am using Amaya version 10.1-pre3 (Aug 16 2008) on a
i32/Linux system.  It was configured --with-gl and compiled with
wxWidgets-2.8.8.  Overall it works well.  However, I have run into two
problems relating to images.


(1) Amaya only reliably displays images, where the "src" attribute
specifies an absolute path like
    <img src="/home/foo/image.png" alt="abs-path image"/>

If the path is relative like "./image.png" or "image.png" the image
does not show up in _some_ documents.  The behavior is independent of
the file type of the image, e.g. JPEG images behave the same.
Interestingly, I get a completely deserved error message if the
"src"-attribute points to an image -- given with a relative path --
that does not exist:
    Error: can't open file 'non-existent-image.png' (error 2: No such file or directory)

The following document can be used to reproduce the problem.  Just
replace "INSERT-PATH-HERE" with your desired path.


<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
    <head>
        <title>Image Inclusion Example</title>
    </head>

    <body>
        <p>Text right before the image (absolute path).</p>
        <div>
            <img src="/INSERT-PATH-HERE/image.png" alt="abs-path image"/>
        </div>
        <p>The following image is given w/o path.</p>
        <div>
            <img src="image.png" alt="rel-path image"/>
        </div>
        <p>Text immediately after the image.</p>
    </body>
</html>


(2) Amaya does not display "large" images.

I don't know, where exactly the threshold between "small" and "large"
is.  Images of 450x300 pixels are correctly displayed here, those with
600x400 pixels are not shown at all.  The funny thing is that Amaya
seems to reserve the correct amount space even in the latter case.
BTW, specifying extra attributes
    width="600" height="400"
in the <img/>-element does not help.


Please cc me if you need more information as I'm not subscribed to the
list.  THX.


/Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.