Skip to content

Commit 12af432

Browse files
Merge pull request #426 from sguimmara/fix-readrgb-documentation
2 parents dcb9154 + 7a9d129 commit 12af432

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +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
363+
the distinction that the `interleave` option now defaults to `true` and the
364364
`samples` are automatically chosen.
365365

366366
```javascript

src/geotiffimage.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,7 @@ class GeoTIFFImage {
630630
}
631631

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

0 commit comments

Comments
 (0)