gui_image_studio.embed_images_from_folder

gui_image_studio.embed_images_from_folder(folder_path, output_file='embedded_images.py', compression_quality=85)[source]

Processes all valid images in a folder, applies optional JPEG/WebP compression, categorizes them by theme (if the filename starts with a theme followed by an underscore), and writes them into an output Python file.

Parameters:
  • folder_path (str) – Path to the folder containing images.

  • output_file (str) – Name of the generated Python file.

  • compression_quality (int) – JPEG/WebP quality (1-100). Lower means more compression.