Repository navigation
Embedded non-free ICC profile in person.jpg(.gz) #5749
Description
Activity
- addedtestIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
on Mar 16, 2016 What does this realistically mean? The codec is copywrited? (Does that even matter?)
Since i don't know where exactly you don't get why it does matter, i'm trying to explain
a bit differently:- if the file is not redistributed in the nodejs tarball, there is practically no issue
- copyright != license; everything has a copyright, not everything has a license to use it
- here there is a binary blob in a file that turns out to be a complete sRGB profile with a
copyright (all right) and a license explaining it is free to use it, free to redistribute it,
but that one cannot modify that portion of the file - at all, ever - and redistribute it later. - now imagine there's a bug in the sRGB profile that would need to be fixed and redistributed;
it would be forbidden by the license. But since most developers won't know that license
issue they will make the modification, thus violating the license, thus exposing them to
legal issues.
/cc @mikeal
While this is less important because it isn't in the distro tarball we should, as a matter of policy, restrict the licenses of files landing in the code base.
Can we replace with this a CC licensed file? We have a provision for CC so that docs can be CC licensed if necessary.
@kapouer what operating system are you on and what package is you
identifycoming from?I ran the suggested command
identify -verbose test/fixtures/person.jpg | grep iccon both OSX and Ubuntu and I'm not seeing the same output...thealphanerd@thealphanerd-VirtualBox:~/temp$ identify -verbose person.jpg | grep icc Profile-icc: 3144 bytesThat is all I'm getting
@thealphanerd If it helps, I see it in ArchLinux:
$ identify -version Version: ImageMagick 6.9.3-7 Q16 x86_64 2016-03-08 http://www.imagemagick.org Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenCL OpenMP Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib $ identify -verbose test/fixtures/person.jpg | grep icc icc:copyright: Copyright (c) 1998 Hewlett-Packard Company icc:description: sRGB IEC61966-2.1 icc:manufacturer: IEC http://www.iec.ch icc:model: IEC 61966-2.1 Default RGB colour space - sRGB Profile-icc: 3144 bytes@thealphanerd the one from ImageMagick 6.9.2-10 in debian/sid. You can try exiftool too - it should output similar information.
Homebrew is serving
Version: ImageMagick 6.9.3-6and Ubuntu hasVersion: ImageMagick 6.7.7-10Since I am unable to reproduce would either of you be up for sending a PR that replaces those two files and updates the tests accordingly?
- addedmetaIssues and PRs related to the general management of the project.Issues and PRs related to the general management of the project.
on Mar 17, 2016 idea: can we just make these tests use the node.js logos in
doc/?@Fishrock123 ..or at least copy them?
- added a commit that references this issue
on Mar 20, 2016 - added a commit that references this issue
on Mar 22, 2016 - added 2 commits that reference this issue
on Mar 30, 2016 - added a commit that references this issue
on Jul 27, 2026
In nodejs 5.9.0,
The profile is actually embedded - it's not only a reference to it.
IEC 61966-2.1 should have a free and open-source license, right ?
Sadly, no; see bottom of page http://www.color.org/srgbprofiles.xalter, quoting:
Which is in direct contradiction of chapter 3 of https://opensource.org/osd
To fix this:
convert person.jpg +profile "icc" person.jpg(do not forget to do it on person.jpg.gz as well).
Though the tests using person.jpg seems to assume its file size, so stripping several kilobytes from it might hurt a test.
I know, it's crazy - always strip and convert images before redistribution.