diff --git a/src/oiiotool/oiiotool.cpp b/src/oiiotool/oiiotool.cpp index 1363fecc71..29ca9e665f 100644 --- a/src/oiiotool/oiiotool.cpp +++ b/src/oiiotool/oiiotool.cpp @@ -3047,7 +3047,8 @@ BINARY_IMAGE_COLOR_OP(powc, ImageBufAlgo::pow, 1.0f); // --powc UNARY_IMAGE_OP(abs, ImageBufAlgo::abs); // --abs -UNARY_IMAGE_OP(premult, ImageBufAlgo::premult); // --premult +UNARY_IMAGE_OP(premult, ImageBufAlgo::premult); // --premult +UNARY_IMAGE_OP(repremult, ImageBufAlgo::repremult); // --repremult // --unpremult OIIOTOOL_OP(unpremult, 1, [](OiiotoolOp& op, span img) { @@ -6180,6 +6181,9 @@ getargs(int argc, char* argv[]) ap.arg("--premult") .help("Multiply all color channels of the current image by the alpha") .action(action_premult); + ap.arg("--repremult") + .help("Multiply all color channels of the current image by the alpha, but don't crush alpha=0 pixels to black.") + .action(action_repremult); // clang-format on if (ap.parse_args(argc, (const char**)argv) < 0) {