[repo] kind = "recipe" [recipe] author.email = "kevinh@geeksville.com" [[stages]] name = "thumbnail" description = "Generate a stretched thumbnail image" tool.name = "siril" script = ''' load "{input[0].full_paths[0]}" resample -maxdim={parameters.size} savejpg "{output.full_paths[0].with_suffix('')}" {parameters.quality} ''' [[stages.inputs]] kind = "job" after = "(veralux|merge_stars).*" # the name of the step we want to follow multiplex = true # one task per upstream file, so multi-file stacks (e.g. Ha/OIII) each get a thumbnail [[stages.inputs.requires]] kind = "min_count" value = 1 # At this point if we don't have any valid inputs, reject this stage from consideration # Based on the following definitions in the stage toml file... # Note: outputs will be prefilled in the context so that the script can use them [[stages.outputs]] # the 'processed' output points to a directory in the 'processed' repo but named based on the target we are trying to build for # see above for a rule that automatically populates the results_dir shorthand kind = "processed" # just keep the same base name but change suffix to .jpg for the thumbnail # auto.prefix = "thumb_" auto.suffix = ".jpg" # name = ["thumbnail.jpg"] [[stages.parameters]] name = "size" default = 1600 # cloudynight: 1600, astrobin: 2048, astrobin thumbnail: 512 description = "Maximum dimension for the thumbnail image" [[stages.parameters]] name = "quality" default = 95 # cloudynight: max 490kb description = "Quality setting for the thumbnail image (1-100)"