Hard-coded settings

There are a number of additional settings available in the script file. These settings are always active, even when the script is run in recipe mode.

  1. force_8_bit: When set to true, the script converts a 16 bit image to 8 bits, before running the spatter filter to dirty up outer mask edges. If set to false, no bit conversion takes place and the spatter filter is skipped.
  2. feather_factor_2x3: How much feathering of the border you like for 35mm. The lower the value, the more the feathering.
  3. feather_factor_4x3: How much feathering of the border you like for 4x3. The lower the value, the more the feathering.
  4. feather_factor_6x7_square: How much feathering of the border you like for square and 67. The lower value, the more feathering.
  5. feather_factor_4x5: How much feathering of the border you like for 4x5. The lower value, the more feathering.
  6. mask_flip_probaility: The probability of the scanner mask being rotated 180 degrees, from 0 to 100.
  7. green_burn_odds: The probability of rendering a green film burn, from 0to 100.
  8. blending_factor: The factor multiplied with feather_factor_[format] to increase the softness of the negative edge against the image. A larger factor also means that the negative rebate will bleed over more into your image. Given as a percentage, where 100 means no increased softness and 300 means three times as soft.
  9. color_check_threshold: Threshold (cut-off) for telling a color image from a black and white image, by comparing the color histogram to a desaturated histogram. Given as a percentage.
  10. blackpoint_threshold: Cumulative threshold for establishing visual black point in the image. Given as per mille. The lower the value, the lower the set black point.
  11. neg_rotation: The amount of possible rotation added to the negative shape, given in degrees. If set to 0 no random rotation will be added. If movement_min_long, movement_max_long, movement_min_short and movement_max_short are all set to 0 (i.e. a centered image) neg_rotation will always be 0. The randomness model used here favors small rotations around 0 degrees, but occasionally you’ll have the more extreme outcome. Because of this, I do recommend having the setting at something a little outrageous, such as 4.

The settings are hard coded at the top of the script file and are written as Javascript variable declarations, like this:

var fancy = true;

It’s important to keep this format when you make changes. Make sure the = or the ; doesn’t accidentally get deleted when you change a value. All variables must be declared, so make sure you don’t accidentally delete any lines.

Note that the setting that takes text values (not numbers, true or false), such as movement_direction, filmburn and force_format, must be enclosed with quotation marks in the script file, like this:

var movement_direction = "random";