]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Tweak the PDL priority (Issue #4932)
authorMichael Sweet <michael.r.sweet@gmail.com>
Wed, 14 Dec 2016 14:44:55 +0000 (09:44 -0500)
committerMichael Sweet <michael.r.sweet@gmail.com>
Wed, 14 Dec 2016 14:44:55 +0000 (09:44 -0500)
CHANGES.txt
cups/ppd-cache.c

index 21ce4f98d049f9c6f4922bbe91b5636aff724daa..ba44aaa11622290a836051e76b8d8052ae3cc383 100644 (file)
@@ -5,7 +5,7 @@ CHANGES IN CUPS V2.2.2
 
        - Fixed some issues with the Zebra ZPL printer driver (Issue #4898)
        - Fixed some issues with IPP Everywhere printer support (Issue #4893,
-         Issue #4909, Issue #4916, Issue #4921, Issue #4933)
+         Issue #4909, Issue #4916, Issue #4921, Issue #4932, Issue #4933)
        - The cups-lpd program did not catch all legacy usage of ISO-8859-1
           (Issue #4899)
         - Fixed builds on systems without a working poll() implementation
index c035fbecb6752c9a255f3637fcdf9af40f4d9b43..582041bcd50797e9f281882af8eef3f447a986cd 100644 (file)
@@ -3110,6 +3110,10 @@ _ppdCreateFromIPP(char   *buffer,        /* I - Filename buffer */
 
       if (!_cups_strcasecmp(format, "application/pdf"))
         cupsFilePuts(fp, "*cupsFilter2: \"application/vnd.cups-pdf application/pdf 10 -\"\n");
+      else if (!_cups_strcasecmp(format, "image/jpeg") || !_cups_strcasecmp(format, "image/png"))
+        cupsFilePrintf(fp, "*cupsFilter2: \"%s %s 0 -\"\n", format, format);
+      else if (!_cups_strcasecmp(format, "image/pwg-raster") || !_cups_strcasecmp(format, "image/urf"))
+        cupsFilePrintf(fp, "*cupsFilter2: \"%s %s 100 -\"\n", format, format);
       else if (_cups_strcasecmp(format, "application/octet-stream") && _cups_strcasecmp(format, "application/postscript") && _cups_strncasecmp(format, "application/vnd.", 16) && _cups_strncasecmp(format, "image/vnd.", 10) && _cups_strcasecmp(format, "image/tiff") && _cups_strncasecmp(format, "text/", 5))
         cupsFilePrintf(fp, "*cupsFilter2: \"%s %s 10 -\"\n", format, format);
     }