Giter Site home page Giter Site logo

signynt / signynts-darkroom-shortcut Goto Github PK

View Code? Open in Web Editor NEW
34.0 1.0 4.0 1.87 MB

A one-click workflow for film negative inversion with dust or scratch removal

License: MIT License

Shell 100.00%
film-photography film-scanning negative-inversion dust-removal

signynts-darkroom-shortcut's People

Contributors

gjauxfaux avatar signynt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

signynts-darkroom-shortcut's Issues

Issue running Darkroom Shortcut Workflow

I'm having an error with the shell script when I try to run it. I'm doing DSLR scans and the B&W script is working just fine. When I try to run the script for my C-41 film it doesn't work.

I've tried to reinstalling everything and running your terminal command in the instructions, but no luck. Here's a .txt file of the error I'm getting from Finder. Could you please help?

Steps to recreate:

  1. Run "Convert to Tiff.workflow" on raw file.
  2. Run "Signynt's Darkroom Shortcut.workflow" on .tif output from step 1
  3. I get this error when running the script from step 2

echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc

Signynt Shell Script Error.txt

Colour negative conversion throws an error

I get the following error when trying to convert the example negative found in this repository's README. Black and white conversion however does work.

The action “Run Shell Script” encountered an error: “convert: For function 'min' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: Expected operand at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2298.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2033.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2033.
convert: Expected operand at '/)/log(/)' @ error/fx.c/GetOperand/2298.
convert: For function 'log' expected 1 arguments, found too few (0) at '/)/log(/)' @ error/fx.c/GetFunction/1857.
convert: Expected operand at '/)/log(/)' @ error/fx.c/GetOperand/2298.
convert: For function 'log' expected 1 arguments, found too few (0) at '/)/log(/)' @ error/fx.c/GetFunction/1857.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/

I've confirmed that I installed the required dependencies correctly, I can run autocolor, autolevel and negfix8 in my terminal.

I'm running this on a 2012 MacBook Pro on MacOS 10.15.7.

convert: command not found

First off all thank you very much for this workflows!

Maybe I'm to tired but I can't figure out what is wrong. After I installed everything I got the following error message:

The action “Run Shell Script” encountered an error: “/usr/local/bin/negfix8: line 132: convert: command not found
/usr/local/bin/negfix8: line 141: convert: command not found
/usr/local/bin/autolevel: line 221: convert: command not found

autolevel:

USAGE: autolevel [-c colormode] [-m midrange] infile outfile
USAGE: autolevel [-h or -help]

OPTIONS:

-c      colormode       colorspace/channel to use to compute 
min, max, gamma statistics; choices are: 
gray, intensity, luminance, lightness, brightness, 
average, magnitude, rgb; default=luminance
-m      midrange        midrange value for autogamma part of script;
0<float<1; default=0.5


/usr/local/bin/autocolor: line 275: convert: command not found

autocolor:

USAGE: autocolor [-m method] [-c clipmode] [-l cliplow] [-h cliphigh] [-n neutralgray] infile outfile
USAGE: autocolor [-help]

OPTIONS:

-m      method            method to adjust neutral color; method=gamma, 
recolor, none; default=recolor
-c      clipmode          clip channels mode; clip=together or separate; 
default=separate
-l      cliplow           clip percent on low end of histogram; 
float; 0<=cliplow<=100; default=0.1
-h      cliphigh          clip percent on high end of histogram;
float; 0<=cliphigh<=100; default=same as cliplow
-n      neutralgray       neutral gray value (percent); float between 
0 and 100; default=mean of luminance


rm: /Users/pablo/Downloads/Example-negfix8.tif: No such file or directory
rm: /Users/pablo/Downloads/Example-autolevel.tif: No such file or directory”

Firstly I thought it could be a M1 problem with the scripts. But autolevel and autocolor for example are working if I start them from the terminal on an example. Also the convert command is working in my terminal.
Maybe I'll found tomorrow a solution. I'll update my Issue here. :)

IR Workflow does not work with large Scans from Silverfast 9

Hi
I recently downloaded and set up Signynt's Darkroom Shortcuts. While the set-up process all seemed to go well and there's no problems with the straight shortcut, or the (B&W) version the (IR) (Silverfast) shortcut only inverts a small corner of the scan leaving the rest blank.

Do you know what I'm doing wrong or is there a fix for this?

I tried to attach a ZIPed file but not sure if it has worked.

Cheers
Michael

Affinity Photo 2 not loading IR data to alpha channel

Hi,

first of all, thank you so much for this complete workflow.
This is what I have searched for.

I found out that the inverted tif created by your workflow will be properly loaded in Affinity Photo (1) but not in Affinity Photo 2.
The channels in Affinity Photo (1) looks like this:
Bildschirmfoto 2023-10-31 um 08 23 36

In Affinity Photo 2 they look like this:
Bildschirmfoto 2023-10-31 um 08 24 51

I can right click on the Unassociated Alpha and load it to Background Alpha like this:
Bildschirmfoto 2023-10-31 um 08 25 13

After that the Dust Removal Macro is working.

Is this something that can be changed? I assume Affinity Photo 2 changed the way how it loads the tiff.
If it's not possible in the workflow, maybe you could add a additional Macro where the step of loading the unassociated alpha to the background alpha is included, just for Affinity Photo 2 users.

Thanks
Eugen

Script (Apple Workflow) fails during removing images

Script (Apple Workflow) fails during removing and moving images due to permission errors.
Please see screenshot.
Bildschirmfoto 2023-11-20 um 13 45 34

The script worked before, than I started messing around with the python version and probably messed up my python installation.
Can this error be linked to that?

Eugen

Problems with negfix8 and autolevels, BW-version works fine..

Thank you for the tool, I was very excited to try it out. However I can not get it to work, I get the following error message:

Bei der Aktion „Shell-Skript ausführen“ ist ein Fehler aufgetreten: „/Users/ganeshkubina/.zshrc:export:1: not valid in this context: Fusion.app/Contents/Public:/Library/Apple/usr/bin
convert: For function 'min' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: For function 'max' expected 2 arguments, found too few (0) at '' @ error/fx.c/GetFunction/1857.
convert: Expected operand at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2298.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2033.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2033.
convert: Expected operand at '/)/log(/)' @ error/fx.c/GetOperand/2298.
convert: For function 'log' expected 1 arguments, found too few (0) at '/)/log(/)' @ error/fx.c/GetFunction/1857.
convert: Expected operand at '/)/log(/)' @ error/fx.c/GetOperand/2298.
convert: For function 'log' expected 1 arguments, found too few (0) at '/)/log(/)' @ error/fx.c/GetFunction/1857.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2033.
convert: Empty expression in parentheses at '/)^(1/2.15))*Quantum...' @ error/fx.c/GetOperand/2033.
convert: Expected operand at '/)/log(/)' @ error/fx.c/GetOperand/2298.
convert: For function 'log' expected 1 arguments, found too few (0) at '/)/log(/)' @ error/fx.c/GetFunction/1857.
convert: Expected operand at '/)/log(/)' @ error/fx.c/GetOperand/2298.
convert: For function 'log' expected 1 arguments, found too few (0) at '/)/log(/)' @ error/fx.c/GetFunction/1857.
convert: invalid argument for option '-gamma': ) @ error/convert.c/ConvertImageCommand/1726.
convert: unable to open image '/Users/ganeshkubina/Downloads/Example-negfix8.tif': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: no images defined `./autolevel_1_31957.mpc' @ error/convert.c/ConvertImageCommand/3325.

autolevel:

USAGE: autolevel [-c colormode] [-m midrange] infile outfile
USAGE: autolevel [-h or -help]

OPTIONS:

-c colormode colorspace/channel to use to compute
min, max, gamma statistics; choices are:
gray, intensity, luminance, lightness, brightness,
average, magnitude, rgb; default=luminance
-m midrange midrange value for autogamma part of script;
0<float<1; default=0.5

convert: unable to open image '/Users/ganeshkubina/Downloads/Example-autolevel.tif': No such file or directory @ error/blob.c/OpenBlob/3527.
convert: no images defined `./autocolor_1_31966.mpc' @ error/convert.c/ConvertImageCommand/3325.

autocolor:

USAGE: autocolor [-m method] [-c clipmode] [-l cliplow] [-h cliphigh] [-n neutralgray] infile outfile
USAGE: autocolor [-help]

OPTIONS:

-m method method to adjust neutral color; method=gamma,
recolor, none; default=recolor
-c clipmode clip channels mode; clip=together or separate;
default=separate
-l cliplow clip percent on low end of histogram;
float; 0<=cliplow<=100; default=0.1
-h cliphigh clip percent on high end of histogram;
float; 0<=cliphigh<=100; default=same as cliplow
-n neutralgray neutral gray value (percent); float between
0 and 100; default=mean of luminance

rm: /Users/ganeshkubina/Downloads/Example-negfix8.tif: No such file or directory
rm: /Users/ganeshkubina/Downloads/Example-autolevel.tif: No such file or directory“

When I try to use negfix8 and autolevel in the terminal I also get errors. The BW-shortcut works well though, I guess because it only uses ImageMagick.

Hope you can help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.