Closed Bug 309203 Opened 20 years ago Closed 20 years ago

zlib compressed SVG is not displayed in Firefox 1.5 Beta 1

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: tobin.bradley, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4 When trying to view a zlib compressed SVG file (php zlib compression), you get the following error: XML Parsing Error: not well-formed Location: http://maps.co.mecklenburg.nc.us/website/svggis/svg.php Line Number 1, Column 1:� The actual PHP code looks like this: header("Content-type: image/svg+xml") ini_set('zlib.output_compression', 'On') The source looks like gobblygook (i.e. like it never interpreted the compressed informatino). Regular pages that are compressed come across fine, so it's only in the SVG renderer. This is also something new - it opened compressed SVG files in Deer Park Alpha 1 (and 2, though I don't remember checking that for sure). Also works fine in IE with Adobe SVG. Reproducible: Always Steps to Reproduce: 1. Go to the page above. Actual Results: See the following error message: XML Parsing Error: not well-formed Location: http://maps.co.mecklenburg.nc.us/website/svggis/svg.php Line Number 1, Column 1:� Expected Results: Render SVG image. I'm trying to do web-based GIS mapping with SVG, and as the geometries are complex, compressing the SVG is the only way to keep the file from getting unusably large. So, for my little corner of the pond, it's a fairly big deal.
You need to send a Content-Encoding header if you gzip the content. See http://jwatt.org/svg/authoring/#server-configuration. This is what I see with "telnet 66.194.122.236 80" and pasting the GET request from web-sniffer.net: HTTP/1.1 200 OK Date: Mon, 19 Sep 2005 22:30:11 GMT X-Powered-By: ASP.NET Connection: close X-Powered-By: PHP/5.0.4 Content-type: image/svg+xml [Gzipped compressed content]
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: SVG - Problem viewing zlib compressed files in 1.5 Beta 1 → zlib compressed SVG is not displayed in Firefox 1.5 Beta 1
You need to log in before you can comment on or make changes to this bug.