User Tools

Site Tools


doc:appunti:hardware:canoscan_9000f_mark_ii_positive_scan

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:appunti:hardware:canoscan_9000f_mark_ii_positive_scan [2019/12/23 16:20] – [Imagemagick tools] niccolodoc:appunti:hardware:canoscan_9000f_mark_ii_positive_scan [2020/01/01 16:02] – [Extract the embedded color profile from an image] niccolo
Line 75: Line 75:
 convert image.tiff -print "%[profiles]\n" null: convert image.tiff -print "%[profiles]\n" null:
 convert image.tiff -print "%[profile:icc]\n" null: convert image.tiff -print "%[profile:icc]\n" null:
 +</code>
 +
 +==== Remove the color profile from an image ====
 +
 +This command will **strip** any comment and **profile** from a source image, it **does not alter the pixel data** values (**WARNING**: it will remove the //Exif.Photo.UserComment// comment too):
 +
 +<code>
 +convert image.tiff -strip image-no-profile.tiff
 </code> </code>
  
Line 93: Line 101:
 </code> </code>
  
-The resulting image will not have any metadata about color profile, so the sRGB will be assumed by default. The pixel data values are converted from the original Canon colorspace to the sRGB one (one-way lossy operation). +The resulting image will not have any metadata about color profile, so the sRGB will be assumed by default. The pixel data values are converted from the original Canon colorspace to the sRGB one (one-way lossy operation). NOTICE: you have to provide the //canon9000fmarkii.icc// file (see above) and the //sRGB.icc// one; the Debian package **colord-data** provides le latter into  **/usr/share/color/icc/colord/**.
- +
-**NOTICE**: the Debian package **colord-data** provides the file **/usr/share/color/icc/colord/sRGB.icc**.+
  
 ==== Extract the embedded color profile from an image ==== ==== Extract the embedded color profile from an image ====
Line 106: Line 112:
  
 It is not possible to extract the ICC file if the colorspace is just declared into the metadata, but not embedded as a profile. In this case you can search instead into the **/usr/share/color/icc/colord/** folder for well-known ICC files installed by the **colord-data** package. It is not possible to extract the ICC file if the colorspace is just declared into the metadata, but not embedded as a profile. In this case you can search instead into the **/usr/share/color/icc/colord/** folder for well-known ICC files installed by the **colord-data** package.
 +
 +==== Examine an ICC color profile ====
 +
 +We can use the command line tool **exiftool** from the Debian package **libimage-exiftool-perl**.
 +
 +To examine a profile embedded into an image:
 +
 +<code>
 +exiftool -icc_profile:* photo.jpg
 +</code>
 +
 +To examine an ICC profile file:
 +
 +<code>
 +exiftool profile.icc
 +</code>
  
 ==== Set a different colorspace ==== ==== Set a different colorspace ====
Line 136: Line 158:
 convert image.tiff -colorspace CIELab image_lab.tiff convert image.tiff -colorspace CIELab image_lab.tiff
 </code> </code>
 +
 +Some known colorspaces are: **sRGB**, **RGB**, **CIELab**, **Gray**. To list colorspaces supported by Imagemagick, execute the command **convert -list colorspace**.
  
 An **ICC color profile** is **not embedded** into the file, so the software used to open the resulting file must be aware of that colorspace by itself. An **ICC color profile** is **not embedded** into the file, so the software used to open the resulting file must be aware of that colorspace by itself.
doc/appunti/hardware/canoscan_9000f_mark_ii_positive_scan.txt · Last modified: 2020/01/02 16:40 by niccolo