G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.1.1 (2026/12/04)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  rep_imgs2bcs_col◀  rep_str2bin_struct_fill_gradient    |    rep_img2gray  ▶

rep_imgs2bcs_col

Arguments:

  • cs_0={ 0=gray | 1=gray_a | 2=rgb | 3=(rgba/cmyk) | 4=cmyka },...

Description:

Replace all images with copies converted to each of the specified color spaces.

 
The output is made of one group per argument, in argument order. Each group contains
every input image converted to that color space, in input order.
N input images and K arguments give N*K output images.
 
From 1 to 5 color spaces can be specified, each one at most once.
Prefix the first argument with - (including -0) to enable CMYK mode,
where 3 means CMYK instead of RGBA (for all arguments).
 
Note: Input images must have 1 to 5 channels.
Note: A 4-channel input is always read as RGBA, even in CMYK mode.
To use CMYK inputs, first convert them to CMYKA by running this on those images only:
'foreach { if s==4 100%,100%,100%,1,255 a c fi }'
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.