Skip to content

Commit 8c74732

Browse files
committed
geotiffimage: stop mentioning that readRGB() forces interleaving
1 parent d6b48ad commit 8c74732

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ YCbCr, and CIE L*a*b.
360360

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

366365
```javascript
367366
const rgb = await image.readRGB({

src/geotiffimage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,7 @@ class GeoTIFFImage {
615615
}
616616

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

0 commit comments

Comments
 (0)