#1912 closed defect (fixed)
Toolbar icons logs dozens of sRGB profile warnings on startup
| Reported by: | 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 , 6 years ago
| Component: | Unassigned → General Controls |
|---|---|
| Owner: | set to |
| Platform: | → all |
| Project: | → ChimeraX |
| Status: | new → assigned |
| Summary: | ChimeraX bug report submission → Toolbar icons logs dozens of sRGB profile warnings on startup |
comment:2 by , 6 years ago
| Cc: | added |
|---|
comment:3 by , 6 years ago
follow-up: 4 comment:4 by , 6 years ago
These PNG files were saved from Photoshop with default options and no errors.
follow-up: 5 comment:5 by , 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 , 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 save the icons without a color profile will work.
Version 0, edited 6 years ago by (next)
follow-up: 7 comment:7 by , 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 , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Used "pngcrush -ow -rem allb -reduce file.png" to remove erroneous color profiles and further optimizes the images.
follow-up: 9 comment:9 by , 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.
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.