jpgicc Command in Linux



The jpgicc command in Linux is used to apply ICC (International Color Consortium) profiles to JPEG images. This utility is a part of the Little CMS (Color Management System) and pretty useful in managing color consistency across different devices, such as printers, monitors, and cameras.

With the help of jpgicc, you can convert images from one color profile to another and ensure accurate color representation. This command supports various options for input and output profiles, quality settings and more.

Table of Contents

Here is a comprehensive guide to the options available with the jpgicc command −

Syntax of jpgicc Command

The basic syntax to use the command jpgicc in Linux is as follows:

jpgicc [options] input.jpg output.jpg

Where,

  • [options] are optional parameters that modify the behavior of the command.
  • input.jpg is the path to the input JPEG file that you want to process.
  • output.jpg is the path where the processed JPEG file will be saved.

jpgicc Command Options

The following are some additional options you can use with the jpgicc command in Linux system:

Option Description
-i profile Specifies the input ICC profile. If not provided, it defaults to sRGB.
-o profile Specifies the output ICC profile. If not provided, it defaults to sRGB.
-q value Sets the quality of the output JPEG image, with a value ranging from 0 to 100.
-b Enables black point compensation, which helps in maintaining shadow details.
-g Marks out-of-gamut colors on the softproof, useful for identifying colors that cannot be printed accurately.
-t value Sets the rendering intent, which determines how colors are converted between profiles. Values are: 0=Perceptual, 1=Colorimetric, 2=Saturation, 3=Absolute.
-n Ignores any embedded ICC profile in the input image.
-p profile Defines a soft proof profile to simulate the printed appearance of the image.
-v Activates verbose mode to deliver more detailed output during the execution of the command.

Examples of jpgicc Command in Linux

Let's explore a few examples of jpgpicc command in Linux system −

Color Correct from Scanner to sRGB

The jpgicc command can be used to apply a scanner's ICC profile to an image and convert it to the sRGB color space. This is useful for ensuring accurate color representation.

For example, to convert an image using a scanner profile, you can use the following option:

jpgicc -i scanner.icm in.jpg out.jpg

Convert from One Monitor Profile to Another

You can also use jpgicc to convert an image from one monitor's color profile to another. This helps you in maintaining color consistency across several displays.

For instance, to convert an image from one monitor profile to another, use the following option:

jpgicc -i mon1.icm -o mon2.icm in.jpg out.jpg

Make a CMYK Separation

The jpgicc command can also be used to convert an RGB image to a CMYK image, which is useful for printing purposes.

For example, to convert an RGB image to CMYK using a printer’s ICC profile, you can use the following option:

jpgicc -o printer.icm inrgb.jpg outcmyk.jpg

Recover sRGB from a CMYK Separation

If you need to convert a CMYK image back to the sRGB color space, jpgicc can handle that as well. This is useful for digital displays.

For example, to convert a CMYK image to sRGB, use the following options:

jpgicc -i printer.icm incmyk.jpg outrgb.jpg

Convert from CIELab ITU/Fax JPEG to sRGB

The jpgicc command can also convert an image from the CIELab ITU/Fax color space to sRGB, ensuring accurate color representation for digital use.

For example, to perform this conversion, use the following option:

jpgicc -i itufax.icm in.jpg out.jpg

Conclusion

The jpgicc command is a handy tool used for managing colors in JPEG images. It helps ensure that colors look the same on different devices like monitors, printers and cameras. This guide has explored the basic syntax, options and different examples of jpgicc command in Linux system.

By learning how to use the jpgicc command, you can easily convert and manage color profiles and ensure your images look their best.

Advertisements