Skip to main content
Inspiring
August 10, 2019
Question

PSD file converting colors when saving as JPEG

  • August 10, 2019
  • 6 replies
  • 1631 views

Hello everyone...I'm looking for some help with an issue that I've been trying to resolve for months now.

I use a PSD template to design some artwork in PS.  I use specific hex code colors when creating this art.  When I go to save it as a JPEG however....and close and reopen the file in PS...the hex codes are no longer the ones that I used when creating the art.

I've done a million different things that I've read about in support forums...and nothing seems to work! 

Can anyone advise?  I've checked my color settings....and switch things around based on other suggestions....but not of that fixes the issue. 

Current settings for Working spaces are :

RBG:  sRGB IEC61966-2.1

CMYK:  US Web Coated

All color management policies are checked for Preserve Embedded Profiles.

When I save as....I always make sure the preserve embedded color profile is checked....and STILL it converts the hex code.

I read in another forum to change my RBG setting to Adobe RGB...which I did...but still....no fix.

Can anyone advise?  It's making me crazy!  LOL

Thanks!! 

    This topic has been closed for replies.

    6 replies

    D Fosse
    Community Expert
    August 11, 2019

    lauraf64966502  wrote

    All color management policies are checked for Preserve Embedded Profiles.

    You're doing this correctly. This is the single most important setting in Photoshop Color Settings, and the "preserve embedded" policy guarantees that everything is handled correctly.

    As long as you have this policy, the working space doesn't really matter much. The profile embedded in the file will always override it, preserving the original intent of the file. And that's how it should be.

    The only problem happens if you save out a file without a profile (untagged). Then the working space gets assigned, and if that's different than the color space the file was created in, it displays incorrectly. This doesn't happen in a normal Save As, the embed profile checkbox is always on. Unless you specifically uncheck it, it stays on.

    But Save For Web and Export both strip the profile by default, and you have to manually check the box. Lots of people unwittingly fall into this trap. Why someone at Adobe thought this was a good idea I don't know. Web browsers have been color managed for many years and there's no benefit whatsoever in stripping the profile. It only causes problems.

    D Fosse
    Community Expert
    August 11, 2019

    Yes, this is what jpeg compression does. This is how a file can be compressed to 2 - 5% of original size. The jpeg algorithm compresses the color component much more aggressively than the luminance component, and colors will shift and lump together.

    Inspiring
    August 11, 2019

    Thank you for the explanation....it confuses me though b/c if I'm working in Illustrator vs Photoshop and export from Illustrator out to a JPEG...it retains all the correct color codes....it's just saving from PS to JPEG I seem to have this issue.  Unfortunately this particular template I use was created on a PSD file....so I'm kinda stuck with having to use PS.  LOL 

    Abambo
    Community Expert
    August 11, 2019

    Test Screen Name ​ is right. The aim of JPEG is not to reproduce the image faithful but to compress the image a maximum. For this, it uses some  phenomena of our eyes and brain that make that we are very bad in distinguishing absolute colours. We can distinguish very good 2 different colours, like red and green  (if we are not colour blind) but we can't distinguish a light red and a red that is just a little more darker. We will, eventually, see it when we are able to compare the colour to a different one (that's what the Pantone stripes are for).

    This is from Wikipedia (JPEG - Wikipedia ):

    1. The representation of the colors in the image is converted from RGB to Y′CBCR, consisting of one luma component (Y'), representing brightness, and two chroma components, (CB and CR), representing color. This step is sometimes skipped.
    2. The resolution of the chroma data is reduced, usually by a factor of 2 or 3. This reflects the fact that the eye is less sensitive to fine color details than to fine brightness details.
    3. The image is split into blocks of 8×8 pixels, and for each block, each of the Y, CB, and CR data undergoes the discrete cosine transform (DCT). A DCT is similar to a Fourier transform in the sense that it produces a kind of spatial frequency spectrum.
    4. The amplitudes of the frequency components are quantized. Human vision is much more sensitive to small variations in color or brightness over large areas than to the strength of high-frequency brightness variations. Therefore, the magnitudes of the high-frequency components are stored with a lower accuracy than the low-frequency components. The quality setting of the encoder (for example 50 or 95 on a scale of 0–100 in the Independent JPEG Group's library[28]) affects to what extent the resolution of each frequency component is reduced. If an excessively low quality setting is used, the high-frequency components are discarded altogether.
    5. The resulting data for all 8×8 blocks is further compressed with a lossless algorithm, a variant of Huffman encoding.

    The decoding process reverses these steps, except the quantization because it is irreversible. In the remainder of this section, the encoding and decoding processes are described in more detail.

    The magic lies in point 1 and 2 and especially point 2. In contrary to what the article says, reducing the chroma resolution is also irreversible in addition to the fact that any transformation can cause rounding errors on the weakest part (and we have here bits, so on the least significant bit, the information may tend more to 0 or more to 1).

    ABAMBO | Hard- and Software Engineer | Photographer
    Brainiac
    August 11, 2019

    Saif, your promblem is different, please start a new message. Thanks.

    iamsaifkhan
    Participating Frequently
    August 11, 2019

    I am using Adobe Photoshop CC 2018 to design a logo for my website but photoshop crashes again and again when I try to save the file as PNG, JPEG format.

    What is the problem, please help me to resolve the problem.

    Further Details

    Format: PNG, JPEG

    Size: 2.38 MB As PSD and 569KB As PNG

    Software: Adobe Photoshop CC 2018

    [Message from moderator: Do not add URLs/websites to your signature or your account will be banned]
    Abambo
    Community Expert
    August 11, 2019

    saifk39562301  wrote

    I am using Adobe Photoshop CC 2018 to design a logo for my website but photoshop crashes again and again when I try to save the file as PNG, JPEG format.

    There is nothing we can do if we do not see the PSD file (linked as attachment is not possible). And please give also information about your computer (OS, version, memory, disk spaces etc). Please give also the dot version of your Photoshop (Help->About).

    What you can do however is to check disk spaces and to test if any file that you would save as JPEG/PNG would crash Photoshop.

    One question I have: Can you update to the latest Photoshop version?

    ABAMBO | Hard- and Software Engineer | Photographer
    Brainiac
    August 11, 2019

    That sounds normal and inevitable. Each channel changes by only 1.  JPEG is called “lossy“ which you may have heard; this is exactly what it means. if you don’t want colour change don’t use it.

    Brainiac
    August 10, 2019

    Please give an exact change (one specific colour, old and new).  Because JPEG is designed to change colours, some things are normal, and an exact match almost impossible.

    Inspiring
    August 10, 2019

    So let's say I need a pantone color....hex code ED7A9E...which is Pantone Pink Carnation.....when I save it as a jpeg from PS it now becomes hex code ee7a9f....it's close...but it's not the same color and I need it to be the same. 

    When I use Adobe Illustrator....and save as JPEG's from there...my color codes do not change....it's only in PS....bBut this particular art work I have to create in PS as I'm using a PSD template.