Skip to content

Restore detecting copyright of ICC color profile with an option #3551

Description

@pombredanne

Based on a chat with @pabs3 we should consider to restore detecting copyright of ICC color profile with an option to enable this. This was disabled in aboutcode-org/typecode@67b979c because of the noise.

For reference, the file discussed here is at https://foss.heptapod.net/openpyxl/openpyxl/-/raw/branch/3.1/openpyxl/formatting/tests/data/conditional-formatting.xlsx?inline=false and in the attached zip

I ran extractcode --all-formats then a copyright scan on this. Returning True at the line aboutcode-org/typecode@67b979c#diff-fe57a9754f1fe16f6436e4fbf8d61ba7b8ec17e67f403dc2d32ca2e6eadeed0cR541 is enough to detect the "Copyright 2007 Apple Inc., all rights reserved." copyright as before.

Here is a mildly edited chatlog:

<pabs> https://bugs.debian.org/1053672 - wonder if any tools can detect that; Apple copyright on an ICC profile in the EXIF data in a JPEG file, in a ZIP file with extension .xlsx

<pombreda> FWIW, ScanCode was able to detect ICC copyrights in JPEG files, but that feature was silenced a few years ago as this is extremely noisy in practice and 1/2 of the JPEG of the world have some ICC color profile ??!!@?!# copyright from Apple, or some other places
See also lovell/sharp#486

<pabs> why turn it off pombreda ?

<pombreda> Roughly 1/2 of all JPEG in the world have similar issue. It annoyed supremely every user and is practically impossible to remediate making it a double whammy
The issue for instance here is that a user CANNOT control what Excel or Apple Number or some image tool may do wrt. color profile
and they do not know and they cannot do anything for things they do know and cannot fix

<pabs> yeah, ack. widespread problem I guess
also can the feature be turned back on with an option?

<pombreda> yes, this would be simple enough

<pabs> ok, that would be good, for generating debian/copyright, or for other people who want pedantic level copyright info

<pabs> do you know what licenses these Apple ICC profiles are under btw?

<pombreda> good luck with this :) that's likely a speleo expedition!
so no
I question if this is even valid, and if the JPEG images even have these profiles inside at all
though they seem effectively embedded in some segments of a JPEG image

<pabs> yeah, ICC gets copied into the EXIF metadata in JPEGs
very rarely is it outside images, there are some Debian packages with bare *.icc profile files though

<pombreda> since the icc file is a system apple file from "/System/Library/ColorSync/Profiles/Generic RGB Profile.icc" it has to be a proprietary/commercial license IMHO

conditional-formatting.xlsx.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions