r/AnalogCommunity • • 5d ago

Scanning Another scanning and inversion workflow tool: Minilab

I got tired of juggling a scanning program, an inversion plugin and an exporter for every roll, so over the last while I wrote my own thing. It's called minilab.

To be clear, I'm not trying to compete with the tools that already exist. There are good ones, paid and free. I made this for me, around how I like to work. If other people like it too, you're welcome to use it, and to contribute if you feel like it.

What it does, roughly:

- Scans the whole holder as a raw linear 16-bit scan and finds the frames itself

- Inverts colour negatives, B&W and slides, with the negative and the positive side by side

- Has presets for 65 film stocks (Portra, Gold, Ektar, Vision3, Superia, CineStill, Tri-X, slides like Velvia and Provia, and so on). They're read from each film's datasheet curves, so picking the stock corrects each colour layer and keeps the shadows from going muddy

- Works a roll at a time: every frame has its own settings, but you can set one up, sync or paste it to the others, and export the lot in one go

- Also takes camera scans and files you already have from a lab

- Keeps the raw scans as plain 16-bit TIFFs, so nothing is locked in

- Exports JPEGs, or 16-bit TIFFs if you want to keep editing elsewhere. After the inversion I usually take the TIFFs into Lightcraft or Bridge and treat them like raw files from there

- Dust removal, a Frontier-style look, and you can load your own .cube LUTs

Some caveats:

- It's mostly a Linux and macOS thing. Scanning goes through SANE there (the Mac download has the drivers inside). There is a Windows build, but it has to use your scanner maker's TWAIN driver, which doesn't give the same control, so expect it to be the rougher one.

- I've mostly used it with my own Epson V200 on an Apple Silicon Mac, through a SANE driver I wrote for it since Epson's own doesn't work on it (https://github.com/vdmkenny/epson-v200-sane). I've had one test session on my school's V750, and someone else is using it with their V600 on Linux. It should work with pretty much anything SANE supports, but I can't promise that for scanners I haven't touched.

- It's a hobby project with opinions. If you're happy with your current setup, you're not missing out.

- I used AI coding tools for a lot of the code. I know how some people feel about that, so I'd rather say it up front.

It's free and open source: https://github.com/vdmkenny/minilab

More screenshots are here: https://vdmkenny.github.io/minilab/

If you try it and something breaks on your scanner, I'd like to hear about it. Issues and pull requests are open.

0 Upvotes

11 comments sorted by

10

u/julesucks1 5d ago

How is this different from the last one? Did you word your prompt slightly differently? If this is useful to you, sure, but frankly the reddit spam about slightly different vibe-coded photoslop is annoying.

2

u/cinaed666 4d ago

"Another" as in "there already exist similar things", not as in "I made another". This is the only software I've ever made that is photo-related, and it is the only time I've ever posted about it.

1

u/redditorknaapie 1d ago

I don’t understand why you would react this way. AI is just a tool for creating something, the interesting part is how OP (or anyone else) implements scanning, converting, etc. Posts like this one can help others create their own ideal workflow or may be input for apps that are more widely used.

Would you react the same way if OP hadn’t used AI?

2

u/deax1 1d ago

if you make slop for yourself, keep it to yourself. why increase the noise, especially since more noise undermines people actually doing real handcoding with care and craft.

all of this is built on theft and if you're creative, the karma from all this theft will boomerang

0

u/rasmussenyassen 2d ago

One fun game you can play with these vibe coded slop app posts is find the shibboleth, you know, like when the guy holds up three finders in Inglorious Basterds and makes it clear he's an American. There's always a tell that the person behind it is so inexperienced that they don't even know what they don't know.

In this case OP is blithely unaware that a tool for flatbed scanning 35mm film is next to useless, because they are too inexperienced to know how bad flatbed scanners are for film. Look at the embarrassingly dirty negative used as an example: it's out of focus and the frame is curved across the top because flatbed scanners are bad at keeping negatives flat and in focus. Virtually everyone shooting enough to care about workflow optimization also cares enough about their photographs to either camera scan or get a Plustek.

-1

u/cinaed666 2d ago

It's an extremely dirty curled negative, because it's an abused one that was loose in a drawer that I was using for the dust removal testing, on a shitty epson v200 that I use for proofing at home. I have a copy stand with a DSLR as well, and minilab takes those raw files just the same for inversion. I just can't be bothered to use it for the volume that I shoot, I only get it our for the proper assignments. FYI, I've been in software dev for over 10 years. There's a difference between slop and accelerating your work. It's very interesting how triggering this seems to be. Calling everything that is touched by AI slop is the exact same shibboleth you describe.

-1

u/rasmussenyassen 2d ago

I didn't say it was slop because it was AI. The hallmark of slop now is not low quality, it's a reasonably high quality product with deep conceptual flaws that would otherwise have impeded the expenditure of the effort previously required to produce such a product.

For example, film inversion software so far has been made with the understanding that masked chromogenic film is inverted by subtracting the color values of undeveloped color couplers and equalizing the density of each layer, which in the case of fresh consumer film exposed and developed properly will reliably give a basically "correct" color profile without any information beyond film base color. You, vibe-coder, think that telling Claude to plug a couple of data sheets into the software is an improvement on this. Never mind the fact that no published color film data sheet is densitometrically complete enough to build a LUT on, or that Vision3 intentionally doesn't have a single "correct" color profile, or that the density and contrast ratios of all black and white films are wildly variable based on developer, or that existing profile-based conversion software like Negafix doesn't work for a variety of complex reasons.

I don't care how accelerated the work is if you've accelerated past the point of understanding what you're doing before you do it.

1

u/cinaed666 2d ago

You're mostly describing how minilab already works. It measures the film base between the detecgted frames, works in density per layer, scales each layer by its own measured range. Same maths as darktable's negadoctor. No datasheet needed for any of that.

For flatbeds, the inversion starts from linear, unprocessed sensor data, like a densitometer would read the negative. Camera RAWs are no different in that aspect.

The stock presets are optional, nothing builds a LUT from them. All the datasheet curves do is straighten the toe of each layer with the published curve so the shadows get crushed less, have less of a per-layer color cast. Base and balance still come from the frame itself.

Theres an optional feature to add some LUTs on top, that's not the stock preset. Those are more snapseed style filters, not for color correctness.

Regarding the vision 3 point, there are curves for ECN2, they will be off for C41.

1

u/rasmussenyassen 2d ago

So "corrects each colour layer and keeps the shadows from going muddy" was a long way to say "scanned a bunch of irrelevant data to make a button that raises the black point a bit and crushes shadows." Care to address the fact that this is totally impossible for black and white film, despite the claim that it is?

I never said that Vision3 curves did not exist. You don't even understand this well enough to understand criticism of it. I said that the curves in question, ECN-2 or C41, have nothing to do with a satisfactory result owing to the fact that Vision3 is a very low-contrast film intended for flexibility in scanning. If you applied an adjustment based on any published curve you'd get several stops more shadow detail than is pleasing to the human eye, much like black and white film.

0

u/cinaed666 2d ago edited 2d ago

You have it the other way around. It does the exact opposite of crushing. Film base stays at zero, the toe gets stretched back onto the straight part of the curve, so shadows open up. Without it they're compressed.

Vision3 being low contrast doesn't even come into it. Output contrast comes from the density range measured in the frame, not from the datasheet. The curve only changes the shape of the toe, and how deep the shadows look in the end is the tone curve after it, same as any other film. Getting the stops of shadow detail back is then the starting point for a pleasing subjective edit.

B&W: not impossible, but yes, a curve is only right for one developer and time. Each preset says which developer and time its curve is for. Develop in something else and it's approximate, or just leave the stock off.

-1

u/rasmussenyassen 2d ago

I don't have it the other way around. You have it the other way around, because you don't get how this works. The primary issue in bad lab scans and the cause of muddy shadows are attempts to stretch the curve out and "open up" shadow detail that isn't there. And you've intentionally designed your software to do the opposite of that? Wow!

"Each preset is for box dev" - there isn't any such thing for black and white film, which you'd know if you had looked at the data sheets yourself rather than having Claude do it. There are generally instructions for 10-15 different developers and a characteristic curve based on a single uncommonly used example developer, which in the case of Foma is contradicted by their development curve information. Besides that, results remain significantly variable depending on minor variations in temperature and agitation, which is why black and white photographers are advised to pick a process and stick to it if they want consistency.