emagrina/apps, home
Search

Picreduce

Make any photo fit the form.

by emagrina Photo & MediaUtilities

Type
Desktop and Mobile app
Runs on
macOS · iOS · iPadOS
Get it
From the app stores · Mac App Store
Price
Free In-app subscriptions

How it’s built

Private source

The source code is private. How it’s built is still described below.

App
  • Swift 6
  • SwiftUI
Engine
  • PicreduceCore (Swift package)
  • ImageIO
  • Core Graphics
System
  • PhotosUI
  • VisionKit
  • App Intents
  • StoreKit 2
Ads (iPhone and iPad)
  • Google Mobile Ads
  • User Messaging Platform

Always under, by construction

A KB is counted as 1,000 bytes, the stricter reading, so a copy fits whichever way a form counts. Picreduce searches the JPEG quality for the best one that fits, and only when the quality would drop too far does it scale the photo down, step by step. Orientation is applied, transparency flattened onto white and colour converted to sRGB. A result over the limit is never written: it's reported, with the smallest size that can be reached.

Rules in their own package

Target sizes, ranges, dimensions, file names and saved forms live in PicreduceCore, a Swift package with its own tests; the image work and the PDF maker sit in a second target of the same package, shared by the iPhone, iPad and Mac apps.

One app, three screens

iPhone, iPad and Mac share the same views and model. From 760 points wide the limit sits beside the photos and the results become a grid, without losing what you've typed when you rotate, resize or unfold. The Mac app saves copies to a folder and runs in the app sandbox.