imgwrench.commands package¶
Submodules¶
imgwrench.commands.blackwhite module¶
Convert color images to black and white.
imgwrench.commands.colorfix module¶
Fix colors of images by stretching their channel histograms to full range.
-
imgwrench.commands.colorfix.
colorfix_fixed_cutoff
(img, lower_cutoff, upper_cutoff)[source]¶ Fix colors by stretching channel histograms between given cutoff colors to full range.
-
imgwrench.commands.colorfix.
colorfix_quantiles
(img, level=0.01)[source]¶ Fix colors by stretching channel histograms between given quantiles to full range.
-
imgwrench.commands.colorfix.
colorfix_quantiles_fixed_cutoff
(img, level, lower_cutoff, upper_cutoff)[source]¶ Fix colors by stretching channel histogram between inner values of given quantiles and cutoff colors to full range.
imgwrench.commands.crop module¶
Crop images to the given aspect ratio.
imgwrench.commands.frame module¶
Put a monocolor frame around images.
imgwrench.commands.resize module¶
Resize images to a maximum side length preserving aspect ratio.
imgwrench.commands.save module¶
No-op to enable saving of images using imgwrench without processing.
imgwrench.commands.stack module¶
Stack images vertically, empty space in the middle.