Skip to content

bjoern-hempel/bash-cmyk-to-rgb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmyk-to-rgb

Installation

Checkout repository

$ cd [installation-directory]
$ git checkout https://github.com/bjoern-hempel/bash-cmyk-to-rgb.git .

Download Adobe colour profiles

Be sure that you comply with the licence conditions. Download, unzip and save the profiles in an accessible directory ([profile-directory]).

Change to working directory

$ cd [working-directory]

Copy the .profiles.dist file into your working directory:

$ cp [installation-directory]/.profiles.dist .profiles

Adjust the profile paths (SETTING_PROFILE_CMYK, SETTING_PROFILE_RGB) according to your configuration:

$ vi .profiles

Usage

Help

$ [working-directory]/bin/convert-cmyk-to-rgb.sh -h

Usage: convert-cmyk-to-rgb.sh [options...]

-i,    --image-filter                Change the image filter (default: jpg|gif|png|jpeg|tif)
-w,    --working-directory           Change the working directory (default: current directory)
-r,    --replace                     Replace the image instead of copying it.

-f,    --force                       Force to convert the image (no dry run).

-x,    --verbose                     Set output to verbose.

-h,    --help                        Shows this help.
-v,    --version                     Shows the version number.

Dry run

$ [working-directory]/bin/convert-cmyk-to-rgb.sh -x

→ Filename:         ./user_upload/folder1/file1.jpg
→ Colorspace:       sRGB
→ Size:             568K
→ STATUS:           fine


→ Filename:         ./user_upload/folder1/file2.jpg
→ Colorspace:       sRGB
→ Size:             392K
→ STATUS:           fine


→ Filename:         ./user_upload/file3.jpg
→ Colorspace:       CMYK
→ Size:             12M
→ STATUS:           to be converted
→ Dryrun. Use -f to convert.

...

Specify a working directory

$ [working-directory]/bin/convert-cmyk-to-rgb.sh -w /path/to/images -i -x

Use an image filter

$ [working-directory]/bin/convert-cmyk-to-rgb.sh -w /path/to/images -i "jpg|jpeg|tif|tiff" -x

Force image creation

$ [working-directory]/bin/convert-cmyk-to-rgb.sh -w /path/to/images -i "jpg|jpeg|tif|tiff" -f -x

Replace origin image

$ [working-directory]/bin/convert-cmyk-to-rgb.sh -w /path/to/images -i "jpg|jpeg|tif|tiff" -f -x -r

Todos

  • Specification of the profiles also as parameters
  • Loop through some ImageMagick parameters (quality, etc.)
  • Output log file for all changes
  • Etc.

A. Authors

B. License

This project is licensed under the MIT License - see the LICENSE file for details

C. Closing words

Have fun! :)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages