Closed Bug 330257 Opened 18 years ago Closed 17 years ago

svg:image display broken if image > 64000 pixels

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Justus-bulk, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060124 Firefox/1.5.0.1

Some raster images are displayed with random content or not at all by svg:image. I've tried and resized various images of various sizes and aspect ratios, in PNG and JPEG formats, and concluded that it depends on the size of the source image: All images larger than about 64000 pixels (+/- a few dozens or hundreds) display nothing or random content, while all images smaller than 64000 pixels display correctly.
The size and aspect ratio specified in the SVG file does not appear to affect this problem.

Reproducible: Sometimes

Steps to Reproduce:
Load an SVG (or XHTML+SVG) file containing an svg:image that xlink:hrefs a raster image larger than about 64000 pixels (e.g., http://www.montefiore.ulg.ac.be/~piater/test/imagetest.svg)
Actual Results:  
The image in question does not display, or it displays random content. I've even had it crash my X session once. This happens "almost" always; I've had the image display correctly on very rare occasions.
In my imagetest.svg, there are two images side by side. The left one is just below 64000 pixels in size and displays correctly; the right one is one pixel wider and one pixel higher, thus more than 64000 pixels in size, and does not display correctly. Moreover, reloading the page tends to change whatever is displayed in its place.

Expected Results:  
Display the file correctly, including the image in question.

This is the latest official Firefox. I've also reproduced the problem with a snapshot build downloaded today, with a Gecko engine dated 11 March 2006.
Neither of the images there are anywhere near 64000px; both in the SVG and with the original image file, they appear to be ~200px.
Justus, can you recheck your testcase please?
Appears to work flawlessly now, with Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071004 Iceweasel/2.0.0.8 (Debian-2.0.0.6+2.0.0.8-0etch1).
Okay, closing as worksforme now then. Thanks for checking.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.