Skip to content

Commit

Permalink
geotiffimage: stop mentioning that readRGB() forces interleaving
Browse files Browse the repository at this point in the history
  • Loading branch information
sguimmara committed Mar 26, 2024
1 parent d6b48ad commit 8c74732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ YCbCr, and CIE L*a*b.

geotiff.js provides a method to automatically convert these images to RGB:
`readRGB()`. This method is very similar to the `readRasters` method with
distinction that the `interleave` option is now always `true` and the
`samples` are automatically chosen.
distinction the `samples` are automatically chosen.

```javascript
const rgb = await image.readRGB({
Expand Down
3 changes: 1 addition & 2 deletions src/geotiffimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,7 @@ class GeoTIFFImage {
}

/**
* Reads raster data from the image as RGB. The result is always an
* interleaved typed array.
* Reads raster data from the image as RGB.
* Colorspaces other than RGB will be transformed to RGB, color maps expanded.
* When no other method is applicable, the first sample is used to produce a
* grayscale image.
Expand Down

0 comments on commit 8c74732

Please sign in to comment.