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

data file contains embedded nonfree ICC profile #4588

Closed
jonassmedegaard opened this issue Apr 24, 2018 · 11 comments
Closed

data file contains embedded nonfree ICC profile #4588

jonassmedegaard opened this issue Apr 24, 2018 · 11 comments

Comments

@jonassmedegaard
Copy link
Contributor

The file data/pptx/docProps/thumbnail.jpeg contains an embedded ICC color calibration file which is copyright Apple and lacks free license.

Please acquire appropriate license for use of the ICC profile, replace with a freely licensed ICC profile, or simply strip the profile (and transform the image to sRGB colorspace, default for screen use when ICC profile is omitted, if needed).

@jonassmedegaard
Copy link
Contributor Author

One way to check images for metadata of embedded ICC profiles is by use of commandline tool exiftool, part of the perl module Image::ExifTool,

@jgm
Copy link
Owner

jgm commented Apr 24, 2018

@jkr how would you like to handle this?

@jkr
Copy link
Collaborator

jkr commented Apr 24, 2018

Solution in this specific case is pretty easy. The thumbnail is unneccessary -- we don't put it in the document. (It's a thumbnail of the document, and we don't make that.) I'll remove it and make sure everything still works.

More generally, though: is there anywhere else we have to keep an eye out for this? There's a png in /data/odt/Thumbnails/thumbnail.png. Otherwise, all our images are in the test dir, which is okay because it's not distributed, right?

@jkr jkr closed this as completed in bb428df Apr 24, 2018
@jonassmedegaard
Copy link
Contributor Author

test dir is included with tarball.

For Debian we currently repackage to strip the following files containing nonfree parts:

data/LaTeXMathML.js
data/pptx/docProps/thumbnail.jpeg
tests/docx/block_quotes.docx
tests/docx/char_styles.docx
tests/docx/deep_normalize.docx
tests/docx/drop_cap.docx
tests/docx/hanging_indent.docx
tests/docx/headers.docx
tests/docx/inline_formatting.docx
tests/docx/inline_images.docx
tests/docx/link_in_notes.docx
tests/docx/links.docx
tests/docx/lists.docx
tests/docx/metadata_after_normal.docx
tests/docx/metadata.docx
tests/docx/normalize.docx
tests/docx/notes.docx
tests/docx/numbered_header.docx
tests/docx/tables.docx
tests/docx/table_with_list_cell.docx
tests/s5-fancy.html

@jonassmedegaard
Copy link
Contributor Author

(above list is not yet adjusted for the 2.x rename tests → test)

@jgm
Copy link
Owner

jgm commented Apr 24, 2018 via email

@jgm
Copy link
Owner

jgm commented Apr 24, 2018 via email

@jkr
Copy link
Collaborator

jkr commented Apr 24, 2018

I imagine it's the thumbnail in the docx files as well. Note though that it isn't every test file in the dir. Since they were all made natively, I wonder if these were the files made on an OSX word (my wife's laptop). In any case, rather than removing party of the file and testing on a possovly corrupted file, it would be better to figure out how the legal ones were made differently.

@jonassmedegaard
Copy link
Contributor Author

Sorry that I sloppily labelled all those files we currently strip from Debian redistribution as nonfree.

I have now opened separate issue #4590 about the files arguably being free but not provided in the form which the copyright holders of that code would call their source - i.e. in the form preferred for editing.

@jkr
Copy link
Collaborator

jkr commented Apr 25, 2018

@jonassmedegaard How did you determine those test/docx/*.docx files to be nonfree?

@jgm jgm reopened this Apr 25, 2018
@jgm
Copy link
Owner

jgm commented Apr 25, 2018

Reopening. The thumbnails have ICC profiles, like the other.
Easy to remove these using convert -strip.

@jgm jgm closed this as completed in 97916f0 Apr 26, 2018
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

3 participants