Skip to content

Commit

Permalink
DAS-2280: Fix a bunch of readme errors (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingbear authored Jan 21, 2025
1 parent d8a59a7 commit e55ec11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Changelog](http://keepachangelog.com/en/1.0.0/).
### Changed

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

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

Expand Down
2 changes: 1 addition & 1 deletion hybig/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def palettize_raster(raster: ndarray) -> tuple[ndarray, dict]:
written to the final raster as 254 and add the mapped RGBA value to the
color palette.
"""
# reserves 255 for transparent and off grid fill values
# reserves index 255 for transparent and off grid fill values
# 0 to 254
max_colors = 255
rgb_raster, alpha = remove_alpha(raster)
Expand Down

0 comments on commit e55ec11

Please sign in to comment.