Skip to content

Commit

Permalink
Bugfix browse image orientation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkelley committed Dec 10, 2024
1 parent 8a5ef64 commit 0844f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbn_survey_image_service/services/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def create_browse_image(
interval: ZScaleInterval = ZScaleInterval()
data: np.ndarray = fits.getdata(fits_image_path)
data = interval(data, clip=True) * 255
image: PIL_Image = PIL_Image.fromarray(data.astype(np.uint8))
image: PIL_Image = PIL_Image.fromarray(data.astype(np.uint8)[::-1])
image.save(output_image_path, format=format.format)


Expand Down

0 comments on commit 0844f7a

Please sign in to comment.