explaingit

nono/resizer

Analysis updated 2026-07-17 · repo last pushed 2012-11-14

4GoAudience · generalComplexity · 2/5DormantLicenseSetup · easy

TLDR

A command-line tool that adds colored padding around your photos so they match standard print ratios like 4:3 or 3:2, preventing online photo printing services from cropping out important parts of your image.

Mindmap

mindmap
  root((repo))
    What it does
      Adds padding to photos
      Matches standard print ratios
      Picks closest ratio automatically
    Tech stack
      Go
      Parallel processing
      Command-line tool
    Use cases
      Printing photos online
      Protecting panoramas
      Saving family photos
    Audience
      Photographers
      Parents printing photos
      Casual users
    License
      MIT
      Copying is love

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Prepare a panoramic landscape photo for printing without losing the edges to automatic cropping.

USE CASE 2

Print an oddly cropped family photo without someone's head getting cut off by the printing service.

USE CASE 3

Batch-process multiple photos at once to match standard print ratios before uploading to a printing service.

What is it built with?

Go

How does it compare?

nono/resizertraefik/helm-changelogtraefik/yaegi-talk
Stars444
LanguageGoGoGo
Last pushed2012-11-142026-03-272019-11-20
MaintenanceDormantMaintainedDormant
Setup difficultyeasyeasyeasy
Complexity2/52/51/5
Audiencegeneralops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires installing Go and building the command-line tool from source.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Resizer is a small command-line tool that fixes a frustrating problem with online photo printing services. When you upload a photo that doesn't match a standard print ratio, services like Apple's photo printing or Negatifplus just crop off parts of your image to make it fit. This tool prevents that by expanding your image's background instead, so nothing gets lost. The tool works by adding padding around your image to make it match a standard print ratio like 4:3, 3:2, or 5:4. For example, if you have a square photo, it adds space to the sides to turn it into a wider 4:3 rectangle. If you have a wide panoramic shot, it adds space to the top and bottom. You choose what color the padding is, and if you don't specify a ratio, the tool picks the closest standard one for you. This is useful for anyone who prints photos through online services but doesn't want to lose important parts of their images to automatic cropping. A photographer uploading a panoramic landscape shot for printing wouldn't have the edges cut off. A parent printing an oddly cropped family photo wouldn't lose someone's head to the service's automatic trimming. The tool processes multiple images at once and handles the math of figuring out which standard ratio is closest. The project was built in Go and uses parallel processing to handle multiple images efficiently. The author has noted several improvements they'd like to make, including adding a checkerboard pattern for the padding instead of a solid color, which would make it easier to trim the padding off later if desired. The tool is a personal project from 2012, released under the MIT license with a charming "copying is an act of love" philosophy.

Copy-paste prompts

Prompt 1
I have a folder of photos I want to print through Apple's photo service but they keep cropping out important parts. How do I use resizer to add padding so my photos match standard print ratios before uploading?
Prompt 2
I have a square photo and a wide panoramic photo. How does resizer decide which standard ratio to use for each, and how do I specify a custom padding color?
Prompt 3
I want to process a batch of images with resizer so they all fit a 4:3 print ratio. What command do I run, and will it handle multiple images in parallel?
Prompt 4
Help me build a workflow where I run resizer on my photos before uploading them to Negatifplus, so nothing important gets cropped during printing.

Frequently asked questions

What is resizer?

A command-line tool that adds colored padding around your photos so they match standard print ratios like 4:3 or 3:2, preventing online photo printing services from cropping out important parts of your image.

What language is resizer written in?

Mainly Go. The stack also includes Go.

Is resizer actively maintained?

Dormant — no commits in 2+ years (last push 2012-11-14).

What license does resizer use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is resizer to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is resizer for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.