question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

image.readRasters fails in Safari with deflate compression

See original GitHub issue

Version: geotiff@1.0.0-beta.11 (browser).

I have a geotiff file with deflate compression, image.readRasters works as expected for this file in:

  • Chrome v83
  • Firefox 77.0.1
  • Edge 83 (windows 10)
  • Opera 68.

However fails in Safari (v13.1.1, MacOS 10.15.5).

Error:

unknown compression method

Raised after this in dist-browser:

if ((15 & oe) !== g) {
  Y.msg = "unknown compression method", $.mode = V;
  break
}

I’ve setup a simple repro here: https://github.com/danwild/geotiff-safari-bug.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
constantiniuscommented, Jun 22, 2020

@danwild Thanks for reporting this and taking the time to provide a test and data.

#158 is ready to merge, I’ll ping here once that has been completed

0reactions
ilan-goldcommented, Jul 20, 2020

Thanks Dan. This is good news for me too 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gzip compression problem in Safari and iOS, with express.js
On Safari for Mac it gives me the following error: Failed to load resource: cannot decode raw data. It only happens with one...
Read more >
TIFF Export With Compression Fails to Com…
Juts noticed some weirdness with Image Capture where the first scans were TIFF compressed, now they are not being compressed? What gives? And ......
Read more >
geotiff.js - npm
pixel interleaved images. Supported data-types: (U)Int8/16/32; Float32/64. Enabled compressions: no compression; Packbits; LZW ..
Read more >
GeoTiff Compression for Dummies - Paul Ramsey
(ordinarily the compression type is in the “Image Structure Metadata” but ... The default TIFF compression is, frequently, “deflate”, ...
Read more >
WebSocket payload is truncated when x-webkit-deflate-frame ...
Summary: REGRESSION (Safari 13): WebSocket payload is truncated when ... This leads to a 'Failed to compress frame' error in console on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found