Graphics, Figures & TablesConversion of embedded JPG Images to CMYK Color Space

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Conversion of embedded JPG Images to CMYK Color Space

Post by insipidtoast »

How do I convert all the JPGs that are embedded in my pdf to the CMYK color space in a way that will preserve the original quality of the photographs but will not take up all my time? In other words I want a conversion to be applied to the entire pdf document, so that all of the embedded JPGs will be converted to the CMYK color space, and not be blurred, or have any other loss in resolution or general image quality.

I realize I made a similar post, but the responses did not answer my question (perhaps my question was not specific enough then).

Today the printer said that all my images would need to be in the CMYK color space, because they do offset printing and it is required.

Edit: I just asked my printer again what I would need to do. Here is the message he left me,
"you have to find out if LYX has to be able to import CMYK image files + convert text file to CMYK PDF.

No offset printer will be able to print with RGB PDF file, … so the only steps you should need to research is whether if LYX can provide CMYK offset pdf. "
How would you respond to his message? I obviously don't know the answers to what he wants to know.

I used the [cmyk} xcolor package in the preamble and then viewed the resulting pdf, but I couldn't notice any difference in that pdf compared to my original. So, I'm not sure if that's the sort of thing that he's after...based on how the pdf looked after entering that xcolor command in the preamble, I definitely have no idea if the JPGs embedded in the document were converted to the CMYK color space, or if just the text was converted, or if nothing was converted.

Edit:
I'm not sure if the printer just wants me to change the lyx pdf to a CMYK output or if he wants me to make sure each individual image is rendered as CMYK and wants me to change the lyx pdf to a CMYK output. I'll ask.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Conversion of embedded JPG Images to CMYK Color Space

Post by localghost »

Since TeX does absolutely nothing with external images (excerpt for including them), you will have to use an external tool. So either do it with the image manipulation of your choice or use the ImageMagick bundle. Another possible method would be to use an online tool like RGB2CMYK.


Thorsten
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Conversion of embedded JPG Images to CMYK Color Space

Post by insipidtoast »

My friend says I should use GIMP, because it has some ad-ons for windows that can do a bulk conversion of JPGs. Then I guess I'll just have to go through the .lyx file of my book and replace all the images.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Conversion of embedded JPG Images to CMYK Color Space

Post by localghost »

insipidtoast wrote:My friend says I should use GIMP, because it has some ad-ons for windows that can do a bulk conversion of JPGs. […]
That's OK, but seems like taking a sledgehammer to crack a nut. I'm sure ImageMagick also manages batch conversion.
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Conversion of embedded JPG Images to CMYK Color Space

Post by insipidtoast »

Could be the case, but I opened up that imagemagick program after downloading it, and had NO idea what to do.

At least with this method, I'll have my friend's online tech support, and I already have some experience with GIMP.

For anyone that's interested, here's what I'm downloading to help get the job done:
http://www.littlecms.com/download.html
http://cue.yellowmagic.info/softwares/s ... index.html
http://www.adobe.com/support/downloads/ ... ftpID=4075
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Conversion of embedded JPG Images to CMYK Color Space

Post by localghost »

insipidtoast wrote:Could be the case, but I opened up that imagemagick program after downloading it, and had NO idea what to do. […]
It's a bundle of command line tools.
insipidtoast wrote:[…] At least with this method, I'll have my friend's online tech support, and I already have some experience with GIMP.[…]
It's always good to use tools you are familiar with.
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Conversion of embedded JPG Images to CMYK Color Space

Post by insipidtoast »

Yeah you might be right. I have no idea what the heck I'm doing! All the plugins for GIMP were zip files. Not knowing what else to do with them, I just created a new folder on my desktop and extracted them to that folder. Apparently it seems I should have unzipped them with GIMP or something :?:
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Conversion of embedded JPG Images to CMYK Color Space

Post by insipidtoast »

OK, localghost,
GIMP is not working, even after I did everything on a youtube tutorial. So, how do I do what you are proposing?

Edit: I figured out how to use separate+ in GIMP by downloading an older verion of GIMP (2.6.0), and following this youtube tutorial:
https://www.youtube.com/watch?v=kgniQS_5N6Q

Now I just need to get the correct answer to this:
http://latex-community.org/forum/viewto ... 45&t=21714
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
Post Reply