Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#1912 closed defect (fixed)

Toolbar icons logs dozens of sRGB profile warnings on startup

Reported by: goddard@… Owned by: Greg Couch
Priority: normal Milestone:
Component: General Controls Version:
Keywords: Cc: meng@…
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-18.5.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-05-02)
Description
Starting ChimeraX with new toolbar icons gives dozens of warnings in the log about "known incorrect sRGB profile".


Log:
libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

libpng warning: iCCP: known incorrect sRGB profile  

UCSF ChimeraX version: 0.9 (2019-05-02)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  




OpenGL version: 4.1 ATI-2.8.38
OpenGL renderer: AMD Radeon Pro 580 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (9)

comment:1 by Tom Goddard, 6 years ago

Component: UnassignedGeneral Controls
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionToolbar icons logs dozens of sRGB profile warnings on startup

comment:2 by Tom Goddard, 6 years ago

Cc: meng@… added

comment:3 by Greg Couch, 6 years ago

Either Elaine will need to resave the icons without the "incorrect sRGB profile" or with a good sRGB profie, or we'll need to postprocess the files. I'll look into the postprocessing. This step will need to be added to the protocol for creating icons.

in reply to:  4 ; comment:4 by Elaine Meng, 6 years ago

These PNG files were saved from Photoshop with default options and no errors. 

in reply to:  5 ; comment:5 by Elaine Meng, 6 years ago

I can try to fix these in Photoshop next week (hopefully possible) but it would have been nice to know about this seemingly obscure setting in the first round of processing.  All the re-downloading, recopying etc. will waste a lot of time.

comment:6 by Greg Couch, 6 years ago

I'll have this "fixed" later today. Turns out this is a well know problem with Photoshop. See https://imageoptim.com/color-profiles.html for an description of the problem. Luckily for us, the exact color doesn't matter that much, so just saving the icons without a color profile will work.

Last edited 6 years ago by Greg Couch (previous) (diff)

in reply to:  7 ; comment:7 by goddard@…, 6 years ago

It should be possible to strip the sRGB color profile from the png images with the ImageMagick convert commandline program.

comment:8 by Greg Couch, 6 years ago

Resolution: fixed
Status: assignedclosed

Used "pngcrush -ow -rem allb -reduce file.png" to remove erroneous color profiles and further optimizes the images.

in reply to:  9 ; comment:9 by Elaine Meng, 6 years ago

I checked in Photoshop and my files already had the sRGB IEC61966 profile recommended on that imageoptum.com link you gave.  (Actually they were sRGB IEC61966-2.1 but seems like that wouldn’t be wrong either.) So I still don’t understand why the files I added were problematic, other than the profiles making the files larger than necessary.

However, I can remove the profile entirely in Photoshop with “Assign profile” option “Do not color manage.”  I tested this just now by putting an icon file into the daily build downloaded to my desktop: the color-managed one gave the error, the non-color-managed one did not.
Note: See TracTickets for help on using tickets.