Here’s a lightweight, open-source alternative to Photoshop written in (a "lite version" core). It supports basic image editing: open, crop, resize, apply filters (grayscale, blur, brightness), and save.

def crop_image(self): if self.image: w, h = self.image.size crop_rect = simpledialog.askstring("Crop", "Enter crop rect (left top right bottom) separated by spaces") if crop_rect: try: l, t, r, b = map(int, crop_rect.split()) self.image = self.image.crop((l, t, r, b)) self.show_image() except: messagebox.showerror("Error", "Invalid format. Use: 10 10 200 200")

# Menu menubar = tk.Menu(root) root.config(menu=menubar)

def blur(self): if self.image: self.image = self.image.filter(ImageFilter.BLUR) self.show_image()