Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embedded ICC color profiles of PNG images are not detected during import #125

Closed
DerAndere1 opened this issue Nov 18, 2019 · 7 comments
Closed

Comments

@DerAndere1
Copy link

DerAndere1 commented Nov 18, 2019

Version: Scribus 1.5.5 for Windows 10 64bit
The embedded ICC color profile of an imported raster image is not detected. This results in wrong interpretation of pixel values and wrong colors in display and export.

Steps to reproduce:

  1. Set the desired default color profiles in 'File ->preferences -> color management'. Activate color management by default.
  2. Create a new Scribus document, make sure color management is activated.
  3. Create a new image frame (hotkey: T)
  4. Right-click on the image frame and select 'load image'. Select a raster image (e.g. a 16 bit per channel PNG) that is stored on the harddrive with an embedded ICC color profile that is different from the profile chosen in 'File -> Document setup -> color management -> Document profiles:RGB images '
  5. Observe that Scribus applies the profile chosen in step 1 to the imported image which results in wrong colors.

Observed behaviour:

The color of the imported image is wrong due to the wrong profile assignment (step 5)

Expected behaviour:

Since imported images can have different embedded profiles, do not rely on a per-document setting 'color management:document profile:RGB images'. Instead, upon import, analyze each source image file for embedded color profile info and apply that embedded color profile. If no profile info is found, sRGB should be assumed. This would result in correctly displayed colors.

Work-around:
For each embedded raster image, do steps 6 to 7:
6. Extract the embedded color profile from the original source-image and save the extracted profile to file (e.g. using image-magick or exif-tools), put the profile file into the profile folder of Scribus.
7. In Scribus, right-click the imported raster image and select 'properties (F2)'. In section 'Image:color management:input profile' select the profile from step 6.

@aoloe
Copy link
Contributor

aoloe commented Nov 19, 2019

@DerAndere1 can you please provide a sample image?

if possible with screenshots of what you obtain and what scribus should do...

@DerAndere1
Copy link
Author

DerAndere1 commented Nov 19, 2019

In the attached zip archive you find an Scribus document (.sla) where the first image is added according to steps 1-5 and the image below (displayed correctly is added using the work around (steps 6-7).
colomanagementtest.zip

The original source image is attached for reference:
linSRGB

Artworks is licensed under a Creative Commons Attribution 4.0 license.
Attribution to "David Revoy, www.davidrevoy.com".

@aoloe
Copy link
Contributor

aoloe commented Nov 19, 2019

@DerAndere1 , i've opened a ticket in the official scribus bug tracker:

https://bugs.scribus.net/view.php?id=15957

@aoloe
Copy link
Contributor

aoloe commented Nov 20, 2019

as jghali wrote in the official ticket, the issue is that at this time scribus does not support icc profiles embedded in PNG images.

i changed the title of this ticket to match this information.

until scribus "fully" supports PNG images, you can use tiff or jpg images...

@aoloe aoloe changed the title embedded ICC color profiles of raster images are not detected during import embedded ICC color profiles of PNG images are not detected during import Nov 20, 2019
@DerAndere1
Copy link
Author

Thanks a lot for forwarding those infos. Tiff works fine. Looks like Scribus has the same limitation as A$obe Illustrator, so I will have to use perceptual 8bit images . I hope at some point Scribus supports embedding 16 bit images into PDF. The PDF1.5 standard and newer allows embedding of high bit-depths images.

@aoloe
Copy link
Contributor

aoloe commented Nov 20, 2019

There are little chances that this issue will be resolved soon. But it's now tracked in the official bug tracker.

I'm closing this ticket and let the "official" one open, hoping for the best : - )

@aoloe aoloe closed this as completed Nov 20, 2019
@DerAndere1
Copy link
Author

Whooo, I downloaded the latest Scribus 1.5.6 SVN snapshot and that already contains the fix, specifically for PNG import. Thanks to everyone involved. I think this was a mayor step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants