Skip to content

Commit

Permalink
Tethys-RC5a
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffenhir committed Jul 19, 2022
2 parents d0a37c9 + 02eded9 commit 5133c1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/astroimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def get_stretch(self):
def crop(self, startx, endx, starty, endy):
self.img_array = self.img_array[starty:endy,startx:endx,:]
self.img_display = self.img_display.crop((startx, starty, endx, endy))
self.img_display_saturated = self.img_display_saturated.crop((startx, starty, endx, endy))
self.width = self.img_array.shape[1]
self.height = self.img_array.shape[0]
return
Expand Down Expand Up @@ -207,6 +208,8 @@ def copy_metadata(self, source_img):
self.image_metadata = source_img.image_metadata

def update_saturation(self):
self.img_display_saturated = self.img_display

if self.img_array.shape[-1] == 3:
self.img_display_saturated = ImageEnhance.Color(self.img_display)
self.img_display_saturated = self.img_display_saturated.enhance(self.saturation.get())
Expand Down

0 comments on commit 5133c1b

Please sign in to comment.