svg:image display broken if image > 64000 pixels




13 years ago
11 years ago


(Reporter: Justus-bulk, Unassigned)



Firefox Tracking Flags

(Not tracked)





13 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060124 Firefox/
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060124 Firefox/

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.,
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?

Comment 3

11 years ago
Appears to work flawlessly now, with Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20071004 Iceweasel/ (Debian-
Okay, closing as worksforme now then. Thanks for checking.
Last Resolved: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.