Skip to content

Commit

Permalink
DAS-2276: Clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingbear committed Dec 17, 2024
1 parent b6aadd0 commit bae52d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hybig/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ def standardize_raster_for_writing(
return raster[0:3, :, :], None

if driver == 'PNG' and band_count == 1:
# we only paletize single band input data
# Only paletize single band input data that has been converted to an
# RGBA raster.
return palettize_raster(raster)

return raster, None
Expand Down

0 comments on commit bae52d6

Please sign in to comment.