zsxkib / tool-merge-images

Merge multiple images into clean horizontal or vertical strips with precise alignment and sizing controls.

  • Public
  • 42 runs
  • GitHub
  • License
Iterate in playground

Run time and cost

This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

Image Strip Merger 🖼️

A practical tool for combining multiple images into clean horizontal or vertical strips. Perfect for creating before/after comparisons, image galleries, or social media collages.

What it does

Upload 2 or more images and this tool will:

  • Merge them into strips - Horizontal or vertical layouts
  • Smart resizing - Automatically harmonize image sizes with multiple strategies
  • Precise alignment - Control how images align within the strip (start, center, end)
  • Border control - Add consistent borders around and between images
  • Format flexibility - Export as WebP, PNG, or JPEG with quality control

Use cases

  • Before/after comparisons - Show transformations side by side
  • Product showcases - Display multiple angles or variations
  • Social media content - Create Instagram-style multi-image posts
  • Documentation - Combine screenshots or diagrams
  • Art portfolios - Display multiple works in one frame

How it works

The tool automatically handles the tricky parts of image merging:

  1. Size harmonization - When images have different dimensions, you can choose to:
  2. Magnify smaller images to match the largest
  3. Reduce larger images to match the smallest
  4. Crop larger images to fit
  5. Keep original sizes

  6. Smart alignment - Images align perfectly whether you want them at the start, center, or end of the strip

  7. Border consistency - Borders are applied uniformly around the entire strip and between individual images

Tips for best results

  • Similar aspect ratios work best for clean strips
  • High resolution images will give you crisp output
  • WebP format provides the best balance of quality and file size
  • Horizontal strips work great for before/after shots
  • Vertical strips are perfect for mobile-friendly content

Technical details

Built with: - PIL (Python Imaging Library) for robust image processing - Cog for easy deployment and API access - Smart memory management for handling large image sets

The tool preserves image quality while optimizing file sizes, and handles transparency properly when working with PNG images.


Made by zsxkib • Follow for more AI tools 🚀