- Package:
- licensecheck
- Source:
- licensecheck
- Submitter:
- Andrius Merkys
- Date:
- 2025-04-08 09:54:01 UTC
- Severity:
- wishlist
Hello,
SVG files sometimes contain licensing information, for example [1]:
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<cc:license
rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
<dc:title>Hard disk</dc:title>
<dc:creator>
<cc:Agent>
<dc:title>Luca Ferretti <elle.uca@libero.it></dc:title>
</cc:Agent>
</dc:creator>
<dc:contributor>
<cc:Agent>
<dc:title>Shape based on exising PNG icon in
gnome-icon-theme</dc:title>
</cc:Agent>
</dc:contributor>
<dc:subject>
<rdf:Bag>
<rdf:li>hard disk</rdf:li>
</rdf:Bag>
</dc:subject>
</cc:Work>
<cc:License
rdf:about="http://creativecommons.org/licenses/GPL/2.0/">
<cc:permits
rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits
rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:requires
rdf:resource="http://web.resource.org/cc/Notice" />
<cc:permits
rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:requires
rdf:resource="http://web.resource.org/cc/ShareAlike" />
<cc:requires
rdf:resource="http://web.resource.org/cc/SourceCode" />
</cc:License>
It would be nice if licensecheck could extract license and copyright
owner from this file. To do so, XPath analysis should be sufficient.
Best,
Andrius
[1]
https://sources.debian.org/src/mate-themes/3.22.21-1/icon-themes/ContrastHigh/scalable/devices/drive-removable-media.svg/?hl=16#L16
Hi Andrius, Quoting Andrius Merkys (2020-10-31 07:20:11) [...] Agreed, licensecheck should ideally detect structured licensing data like above RDF metadata. For now, a workaround is to extract such metadata using exiftool (debian package libimage-exiftool-perl), e.g. like this: 1>&2 exiftool '-textOut!' %d%f.%e:meta -short -short -recurse -ext svg . licensecheck --copyright --deb-machine --recursive --lines 0 --check '.*' --ignore '.*\.svg$' -- * find -type f -name '*.svg' -delete More elaborate use of that workaround (although not for SVG files specifically) can be found e.g. here: https://sources.debian.org/src/ghostscript/9.53.3%7Edfsg-5/debian/copyright-check/ - Jonas
Good morning, Attached please find your PDF account statement and invoice as of 05/11/2023. Please notice you have a past due balance for invoice IN0099203. Please provide payment as soon as possible. Best Regards, Shawneen Chisholm Accounts Receivable Coordinator UNITED RENTALS, INC. Branch L02 BONNYVILLE 4920 56TH AVE BONNYVILLE AB T9N 2N8 CA 780-826-7610 CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s). This may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message, please alert the sender immediately by reply email and then delete this message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited