mime.convs(5)
π mime.convs(5) π
okay bestie, gather round, because we're talking about mime.convs β that's the mime type conversion file for cups, and yes, it's deprecated, we'll get to that, don't panic π«Ά
β¨ NAME β¨
mime.convs β mime type conversion file for cups (deprecated) π
πΈ DESCRIPTION πΈ
so the mime.convs file is literally the master list of which filters are available for converting files from one format to another. the standard filters hold it down for text, PDF, PostScript, and a whole bunch of image file types. iconic range, honestly π
you can add extra filters in files that have the .convs extension, and they live in the CUPS configuration directory. yes, plural, you can have several. slay.
every single line in the mime.convs file is one of exactly three things: a comment, a blank, or a filter line. that's it, that's the whole vibe check.
- comment lines start with the
#character. classic. - filter lines spell out the source and destination MIME types, plus a relative cost for the filter, plus the filter to actually run:
source/type destination/type cost filter
let's break that down, bestie, one field at a time π
- the
source/typefield is the source MIME media type that gets consumed by the filter. it's the thing going in. - the
destination/typefield is the destination MIME media type that gets produced by the filter. it's the thing coming out. - the
costfield is the relative cost of running the filter. a value of100means the filter uses a large amount of resources, while a value of0means the filter uses very few resources. low cost = lowkey chill, high cost = highkey hungry π - the
filterfield is the filter program filename. and here's the tea: filenames are relative to the CUPS filter directory. no absolute paths, she's relative, periodt.
π FILES π
/etc/cupsβ typical CUPS configuration directory./usr/lib/cups/filterβ typical CUPS filter directory./usr/libexec/cups/filterβ CUPS filter directory on macOS.
π¦ EXAMPLES π¦
say you wanna define a filter that converts PostScript documents to CUPS Raster format. here's exactly how that looks:
application/vnd.cups-postscript application/vnd.cups-raster 50 pstoraster
see? source type, destination type, cost of 50, and the filter. chef's kiss π
β NOTES β
CUPS filters are deprecated and will no longer be supported in a future feature release of CUPS. fr fr, this is the part where you pay attention.
printers that don't support IPP can still be supported using applications such as ippeveprinter(1). so there's a path forward, bestie, don't spiral π
π SEE ALSO π
cups-files.conf(5), cupsd.conf(5), cupsd(8), cupsfilter(8), mime.types(5), CUPS Online Help (http://localhost:631/help)
π COPYRIGHT π
Copyright Β© 2020-2024 by OpenPrinting.
and that's the whole page, no cap β¨ this was the mime.convs(5) manual, dated 2021-02-28, brought to you by CUPS and OpenPrinting β thanks for reading, ily, go convert something π§π
π¦ where this page comes from
- alpine 3.22: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.23: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.24: cups-doc 2.4.19-r1 Β· Apache-2.0
- centos-stream 10: cups 1:2.4.10-18.el10 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- debian trixie: cups 2.4.10-3+deb13u1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- debian trixie: cups 2.4.10-3+deb13u2 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- fedora 43: cups 1:2.4.14-2.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups 1:2.4.19-3.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups 1:2.4.16-7.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups 1:2.4.19-3.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- nixpkgs unstable: cups 2.4.19
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- ubuntu questing: cups 2.4.12-0ubuntu3
- ubuntu questing: cups 2.4.12-0ubuntu3.10
- ubuntu resolute: cups 2.4.16-1ubuntu1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu resolute: cups 2.4.16-1ubuntu1.3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu stonking: cups 2.4.16-1ubuntu3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- Copyright Β© 2020-2024 by OpenPrinting
- Copyright Β© 2007-2019 by Apple Inc
- Copyright Β© 1997-2006 by Easy Software Products
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms