XXX4Fans
MD Shop from gumroad
MD Shop

gumroad


Image Layering Tool

ImageLayer: Effortless Image Layering Tool

Introducing ImageLayer, your go-to Python-based tool for effortlessly layering images! Perfect for graphic designers, content creators, or anyone looking to create stunning layered compositions.

Key Features:

  1. Resolution: The tool will automatically Pick the resolution of the Selected Given Images!
  2. User-Friendly Interface: A simple console-based interface ensures that anyone can use ImageLayer without any hassle. No complex setups, just smooth image layering.
  3. Batch Layering: Select and layer multiple PNG images at once. ImageLayer streamlines the process, saving you time and effort.
  4. Save with Ease: The tool automatically saves the final layered image in the same directory, making it convenient to find and use in your projects.
  5. Background Option: Set a default black background for your layered images or pick choose a custom colour, providing a solid foundation for your creative compositions.

Get ImageLayer today and elevate your image layering experience with simplicity and efficiency!

Guide is in the Banner!

Python Code:

import os from tkinter import filedialog, simpledialog from PIL import Image, ImageDraw def select_images(): file_paths = filedialog.askopenfilenames(title="Select PNG images", filetypes=[("PNG files", "*.png")]) return file_paths def get_background_color(): default_color = "#000000" # Default color is black color = simpledialog.askstring("Background Color", "Enter the background color (in hex format, e.g., #RRGGBB)\n(Default is black):", initialvalue=default_color) return tuple(int(color[i:i+2], 16) for i in (1, 3, 5)) if color else None def layer_images(image_paths, background_color=None): if not image_paths: print("No images selected. Exiting...") return first_image = Image.open(image_paths[0]) resolution = first_image.size layered_image = Image.new("RGBA", resolution, background_color) if background_color else Image.new("RGBA", resolution) for image_path in image_paths: img = Image.open(image_path) layered_image.paste(img, (0, 0), img) return layered_image def save_layered_image(layered_image, output_dir): output_path = os.path.join(output_dir, "layered_image.png") layered_image.save(output_path) print(f"Layered image saved at: {output_path}") def main(): background_color = get_background_color() image_paths = select_images() if not image_paths: print("No images selected. Exiting...") return output_dir = os.path.dirname(image_paths[0]) layered_image = layer_images(image_paths, background_color) save_layered_image(layered_image, output_dir) if __name__ == "__main__": main()

Please note that due to the nature of antivirus software, the Image Layering Tool may be flagged as a potential threat, even though it is not malicious. This is a common occurrence known as a "false positive."

For Bug Reports @mdshop on Discord.

ImageLayer.exe

Source


Image Layering Tool

Related Creators