Coder Social home page Coder Social logo

plazmamamba / python-image-collage-maker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 23 KB

Automate collage making with a Python script that sorts, corrects orientation, scales down, and arranges photos on a canvas, perfect for organized collections and digital albums.

Home Page: https://github.com/PlazmaMamba/python-image-collage-maker

License: MIT License

Python 100.00%
automation collection digital-album exif-data image-processing photo photo-collection photo-collection-organization photo-management python

python-image-collage-maker's Introduction

Python Image Collage Maker

This Python script provides a comprehensive solution for processing a collection of images within a directory. It automates the task of sorting images by date, correcting their orientation based on EXIF metadata, scaling them down, and dynamically arranging them on a canvas. This tool is ideal for generating organized photo collections, preparing images for digital albums, or any application that requires automated image handling and layout.

Features

  • Automatic Orientation Correction: Fixes image rotation according to EXIF metadata to ensure all images are correctly oriented.
  • Image Scaling: Dynamically scales images down based on the number of images to be placed on a single canvas, maintaining a balance between visibility and layout efficiency.
  • Sort by Date: Organizes images by the date captured, using EXIF data, to ensure chronological ordering.
  • Dynamic Image Placement: Calculates the optimal layout for images on a canvas, considering the number of images and their orientations, and places them accordingly.
  • Canvas Generation: Creates a canvas (or multiple canvases) to host the grouped and processed images, saving the output as PNG files with unique timestamps.

Dependencies

  • Python 3.x
  • Pillow (PIL Fork): A Python Imaging Library adds image processing capabilities to your Python interpreter. This script uses Pillow for opening, manipulating, and saving many different image file formats.

To install Pillow, run:

pip install Pillow

Usage

  • Set up your environment: Ensure Python 3.x and Pillow are installed.
  • Prepare your images: Place all images you wish to process in a single directory.
  • Run the script: Execute the script from your terminal or command prompt.

The script will then process the images, sort them, correct their orientation, scale them down, and arrange them on canvases. Each canvas will be saved with a unique timestamp in the script's running directory.

Contributing

Feel free to fork this repository and submit pull requests to contribute to this project. For major changes, please open an issue first to discuss what you would like to change.

To-Do

  • Improve running speed
  • Make the grid layout more flexible
  • Add better support for images with not 4:3 or 3:4 aspect ratios

License

Distributed under the MIT License. See LICENSE for more information.

Contact

python-image-collage-maker's People

Contributors

plazmamamba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.