Configures OpenComic AI to preserve ICC color profiles in output images by integrating with the Sharp image processing library. This ensures color accuracy when upscaling images with embedded color profiles.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ollm/opencomic-ai-bin/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Parameters
The Sharp instance to use for ICC profile preservation. Pass the Sharp library object.
The color space to use in the Sharp processing pipeline. Common values:
'rgb16', 'srgb', 'rgb'.Returns
void - This method does not return a value.
Behavior
- Integrates Sharp for post-processing upscaled images
- Preserves embedded ICC color profiles from source images
- Applies the profile to output images automatically
- Uses the specified color space for internal processing
Example
Custom color space
Why preserve ICC profiles?
ICC profiles ensure consistent color reproduction across different devices and applications. Without preservation:- Colors may appear differently than intended
- Professional photography workflows may break
- Color-calibrated images lose their calibration
- Original color intent is maintained
- Professional color accuracy is preserved
- Images display consistently across platforms
Installation
This feature requires the Sharp library:Color space options
'rgb16'(default) - 16-bit RGB color space, highest quality'srgb'- Standard RGB color space'rgb'- 8-bit RGB color space
'rgb16' for maximum color fidelity, or 'srgb' for smaller file sizes.
Related
- ICC profile guide - Detailed color profile documentation
- upscale() - Main upscaling method
- Sharp documentation - Learn more about Sharp