I can confirm that imagemagick will do the trick. If you’re using python, and want to do it within your program I’d recommend using PIL.

 

from PIL import Image

# image.mode is where the color space currently in use is stored

X = Image.open(path)

X.convert(‘cmyk’)

 

From: "Krichevsky, Nicholas J. via WLUG" <wlug@lists.wlug.org>
Reply-To: Worcester Linux Users' Group General Discussion <wlug@lists.wlug.org>
Date: Sunday, November 15, 2020 at 5:57 PM
To: Worcester Linux Users' Group General Discussion <wlug@lists.wlug.org>
Cc: Dennis Payne <dulsi@identicalsoftware.com>, "Krichevsky, Nicholas J." <njkrichevsky@wpi.edu>
Subject: [EXT] [WLUG] Re: [EXT] CMYK jpeg

 

Looks like you can do this with imagemagick

 

http://www.imagemagick.org/discourse-server/viewtopic.php?t=13359

I need to convert a large number of images for my sister's ecommerce shop. Her website automatically handles images provided they are in the CMYK version of JPEG, but not the RGB version, and provided the starting file size is less than 1MB.

www.imagemagick.org

 


From: Dennis Payne via WLUG <wlug@lists.wlug.org>
Sent: Sunday, November 15, 2020 8:22 PM
To: Worcester Linux Users' Group General Discussion <wlug@lists.wlug.org>
Cc: Dennis Payne <dulsi@identicalsoftware.com>
Subject: [EXT] [WLUG] CMYK jpeg

 

Anybody know of an easy tool to convert an image into a CMYK color
space jpeg? I found an online site that works but would like to do it
on my machine. Searching has only found how to do it for tiff files.

--
Dennis Payne
dulsi@identicalsoftware.com
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsocial.freegamedev.net%2Fchannel%2Fdulsi&amp;data=04%7C01%7Cnjkrichevsky%40wpi.edu%7Cf3db634e4fe44534b4b808d889ce1501%7C589c76f5ca1541f9884b55ec15a0672a%7C0%7C0%7C637410865997176091%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=NChE0cJuwuXvXa4Fc7ZQrGPyGlH%2FIW8%2F0RpoeMIhP%2B0%3D&amp;reserved=0
_______________________________________________
WLUG mailing list -- wlug@lists.wlug.org
To unsubscribe send an email to wlug-leave@lists.wlug.org
Create Account: https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwlug.mailman3.com%2Faccounts%2Fsignup%2F&amp;data=04%7C01%7Cnjkrichevsky%40wpi.edu%7Cf3db634e4fe44534b4b808d889ce1501%7C589c76f5ca1541f9884b55ec15a0672a%7C0%7C0%7C637410865997176091%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=f%2FU%2F3LU4n6l%2Fq0tAFp0yj6FhmUcZpalmzz%2FYTSXeYTQ%3D&amp;reserved=0
Change Settings: https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwlug.mailman3.com%2Fpostorius%2Flists%2Fwlug.lists.wlug.org%2F&amp;data=04%7C01%7Cnjkrichevsky%40wpi.edu%7Cf3db634e4fe44534b4b808d889ce1501%7C589c76f5ca1541f9884b55ec15a0672a%7C0%7C0%7C637410865997176091%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=qEzbzxxHeTSdwIWd%2BVcRY7WA9aVLdF%2Bc70%2FwDat9e%2Bw%3D&amp;reserved=0
Web Forum/Archive: https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwlug.mailman3.com%2Fhyperkitty%2Flist%2Fwlug%40lists.wlug.org%2Fmessage%2FJH76OHL7TSHXR56T5RJFIYSUYYKV7CVT%2F&amp;data=04%7C01%7Cnjkrichevsky%40wpi.edu%7Cf3db634e4fe44534b4b808d889ce1501%7C589c76f5ca1541f9884b55ec15a0672a%7C0%7C0%7C637410865997176091%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=Zu2EUifktDuq9387XRTjF2eDa6ctmHSvIICOQHQQL4w%3D&amp;reserved=0