Skip to content

Commit e55ec11

Browse files
authored
DAS-2280: Fix a bunch of readme errors (#45)
1 parent d8a59a7 commit e55ec11

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Changelog](http://keepachangelog.com/en/1.0.0/).
99
### Changed
1010

1111
* NODATA and TRANSPARENT values are merged. [[#41](https://github.com/nasa/harmony-browse-image-generator/pull/41)]
12-
- User visible change: paletted PNG outupt images will have up to 254 color
12+
- User visible change: paletted PNG output images will have up to 254 color
1313
values and a 255th value that is transparent.
1414
- Internal code changes: removes `TRANSPARENT_IDX` (254) and uses
15-
`NODATA_IDX` (255) in its stead. A color of (0,0,0,0) was previosly set to
16-
both the indexes (254 and 255) in the ouput PNGs and now only 255 will have
17-
this value. This change ensures the roundtrip from single band to RGBA to
18-
paletted PNG is consistent.
15+
`NODATA_IDX` (255) in its stead. A color of (0,0,0,0) was previously set to
16+
both the indexes (254 and 255) in the output PNGs and now only 255 will have
17+
this value. This change ensures the round-trip from single band to RGBA to
18+
Paletted PNG is consistent.
1919

2020
## [v2.1.0] - 2024-12-13
2121

hybig/browse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def palettize_raster(raster: ndarray) -> tuple[ndarray, dict]:
401401
written to the final raster as 254 and add the mapped RGBA value to the
402402
color palette.
403403
"""
404-
# reserves 255 for transparent and off grid fill values
404+
# reserves index 255 for transparent and off grid fill values
405405
# 0 to 254
406406
max_colors = 255
407407
rgb_raster, alpha = remove_alpha(raster)

0 commit comments

Comments
 (0)