A tiny no-frills depth of field progressive web app for film cameras.
Because this is just one of a series of utility PWA's I've had lying around that I use that might be useful to other folks.
Hop into the src
folder and run the local web server of your choice. No specific tool required.
I didn't really wrap this with build tooling, but I did crunch it down to 1.7K gzip'ed for fun using closure compiler and http-minifier. The rest is just some fancy Linux CLI jumping and sed (and I almost just used a make file instead ;-).
$ yarn install
$ yarn dist
- How does this calculate depth of field?
This is a pretty basic calc that you can find on the likes of Wikipedia or any of the many DoF calculators out there. This is not a lensmaker calculation (which is more involved).
- How does this calculate circle of confusion?
Via: CoC = 1 / (lines/mm * (diagonal^8x10 print / diagonal^filmFormat))
, where lines/mm is 5.
- Why does this use 5 lines per millimeter as the basis for circle of confusion calculation?
Personal preference.
- Why doesn't this include tilt degree?
If I'm using tilt/swing, I've got a loupe on the ground glass. I don't find the calculation for Scheimpflug wedge particularly useful in the field.