libtiff: Fix tiffcp and tiffcrop issue 228 - step 1

From 251395dd28dcc8504fddc979e1535f33b4afa376 Mon Sep 17 00:00:00 2001
From: Lee Howard <[EMAIL REDACTED]>
Date: Fri, 15 Mar 2024 10:54:43 -0700
Subject: [PATCH] Fix tiffcp and tiffcrop issue 228 - step 1

---
 tools/tiffcp.c   | 6 +++---
 tools/tiffcrop.c | 9 +++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/tools/tiffcp.c b/tools/tiffcp.c
index 650544e3..a8c0dfcb 100644
--- a/tools/tiffcp.c
+++ b/tools/tiffcp.c
@@ -641,9 +641,9 @@ static const char usage_info[] =
     " -c jpeg[:opts]  compress output with JPEG encoding\n"
     /* "    JPEG options:", */
     "    #            set compression quality level (0-100, default 75)\n"
-    "    r            output color image as RGB rather than YCbCr\n"
-    "    For example, -c jpeg:r:50 for JPEG-encoded RGB with 50% comp. "
-    "quality\n"
+    "    r            do not change colorspace (raw)\n"
+    "    For example, -c jpeg:r:50 for JPEG-encoded with 50% comp. "
+    "quality and same colorspace\n"
 #endif
 #ifdef JBIG_SUPPORT
     " -c jbig         compress output with ISO JBIG encoding\n"
diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c
index 95983479..44677a7d 100644
--- a/tools/tiffcrop.c
+++ b/tools/tiffcrop.c
@@ -755,10 +755,9 @@ static const char usage_info[] =
     " -c jpeg[:opts] Compress output with JPEG encoding\n"
     /* "    JPEG options:\n" */
     "    #        Set compression quality level (0-100, default 100)\n"
-    "    raw      Output color image as raw YCbCr (default)\n"
-    "    rgb      Output color image as RGB\n"
-    "    For example, -c jpeg:rgb:50 for JPEG-encoded RGB with 50% comp. "
-    "quality\n"
+    "    raw      Output same colorspace image as input (default)\n"
+    "    For example, -c jpeg:raw:50 for JPEG-encoded with 50% comp. "
+    "quality and the same colorspace\n"
 #endif
 #ifdef PACKBITS_SUPPORT
     " -c packbits Compress output with packbits encoding\n"
@@ -1653,8 +1652,10 @@ static int processCompressOptions(char *opt)
                 quality = atoi(cp + 1);
             else if (strneq(cp + 1, "raw", 3))
                 jpegcolormode = JPEGCOLORMODE_RAW;
+/* libjpeg does not support colorspace conversion to RGB
             else if (strneq(cp + 1, "rgb", 3))
                 jpegcolormode = JPEGCOLORMODE_RGB;
+*/
             else
                 usage(EXIT_FAILURE);
             cp = strchr(cp + 1, ':');