I am translating this tutorial (http://gomedia.com/zine/tutorials/easy- ... photoshop/) step by step to ImageMagick and haven't had any issues until "step 5 emulating the 'color profile' of film". I want to be able to select a certain color channel in the source image and edit it's specific CMYK values.
Here is the source image that I wish to edit: https://i.imgur.com/8F6LQHg.jpg
Using the photoshop selective color tool: https://i.imgur.com/wC5203b.png
Image after using the Selective Color tool in Photoshop to change the Magenta and Yellow values of the Yellow colors in the image (following the tutorial): https://i.imgur.com/OXEnArw.jpg
My attempt at doing the same thing in ImageMagick: https://i.imgur.com/A0JqWUo.jpg
My idea was to try to separate the different CMYK and RGB channels into their own files, editing each one's color channels then combining them back together. I want to do this for the Yellow, Green, Blue, and Black channels, but I am just focusing on one to get it working for now. Here is my code:
Code: Select all
convert source.jpg -colorspace CMYK -separate separate_CMYK_%d.jpg
#I'm assuming separate_CMYK_2.jpg is the Yellow spectrum
convert separate_CMYK_2.jpg -colorspace CMYK -channel M -evaluate set 75% +channel -channel Y -evaluate set 25% +channel separate_CMYK_2.jpg
convert separate_CMYK_0.jpg separate_CMYK_1.jpg separate_CMYK_2.jpg separate_CMYK_3.jpg -set colorspace CMYK -combine -colorspace RGB combine.jpg
Code: Select all
Version: ImageMagick 6.9.6-2 Q16 x86_64 2016-10-11 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
https://www.imagemagick.org/Usage/color_basics
http://www.imagemagick.org/script/comma ... hp#channel
http://www.imagemagick.org/script/comma ... p#evaluate
http://www.imagemagick.org/script/comma ... colorspace
I just can't figure this out. I have also tried searching on the forums and came across this post:
https://www.imagemagick.org/discourse-s ... =1&t=28646
The user there asks how to change the CMYK values on only the Black channel, and I assume they figured out how to do it as they never asked about it again. Unfortunately, a solution was never posted. Some people responded and said to convert the colorspace to CMYK and edit from there, but that would effect the whole 'spectrum' and all channels. I want to specifically target certain colors and edit only their CMYK values.
Anyways, any help with this would be appreciated. Thank you!