Advertisement
Najeebsk

GENERATE-AI-IMAGES-WITH-STEGNO.py

Feb 12th, 2024
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.20 KB | None | 0 0
  1. import subprocess
  2. import tkinter as tk
  3.  
  4. def hide_images():
  5.     original_file = original_entry.get()
  6.     hide_file = hide_entry.get()
  7.     save_file = save_entry.get()
  8.     subprocess.run(['Stegano', '-e', '-i', f'DEEPFAKE/{original_file}.jpg', '-f', f'DEEPFAKE/{hide_file}.jpg', '-o', f'DATA/{save_file}'])
  9.  
  10. def unhide_images():
  11.     original_file = original_entry.get()
  12.     save_file = save_entry.get()
  13.     subprocess.run(['Stegano', '-d', '-i', f'DATA/{original_file}.png', '-f', f'DATA/{save_file}.jpg'])
  14.  
  15.  
  16. root = tk.Tk()
  17. root.title("Najeeb Generate AI Images")
  18.  
  19. # Labels
  20. tk.Label(root, text="Original File:").grid(row=0, column=0)
  21. tk.Label(root, text="Hide File:").grid(row=1, column=0)
  22. tk.Label(root, text="Save File:").grid(row=2, column=0)
  23.  
  24. # Entry fields
  25. original_entry = tk.Entry(root)
  26. hide_entry = tk.Entry(root)
  27. save_entry = tk.Entry(root)
  28.  
  29. original_entry.grid(row=0, column=1)
  30. hide_entry.grid(row=1, column=1)
  31. save_entry.grid(row=2, column=1)
  32.  
  33. # Buttons
  34. hide_button = tk.Button(root, text="Hide", command=hide_images)
  35. unhide_button = tk.Button(root, text="Unhide", command=unhide_images)
  36.  
  37. hide_button.grid(row=3, column=0)
  38. unhide_button.grid(row=3, column=1)
  39.  
  40.  
  41. root.mainloop()
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement