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

Comparison of svg digital objects #129

Open
ll4strw opened this issue May 21, 2024 · 1 comment
Open

Comparison of svg digital objects #129

ll4strw opened this issue May 21, 2024 · 1 comment

Comments

@ll4strw
Copy link

ll4strw commented May 21, 2024

This is a question rather than an issue.

How would one compare two svg images to detect similarities? I understand that an svg object should be treated as text as far as its content goes. Supposing I have two svgs which differ only in a path element with the first one colored using #97C024 and the second using #97C020, if I create my iscc codes from instance, content(text), and data units and compare them I obtain a similarity of 74% calculated with iscc_similarity. Would not such a value be an underestimation of their similarity? The analyzed svgs should be practically considered equal. How would I use the ISCC algorithms to spot such subtle differences? Thanks in advance.

@titusz
Copy link
Member

titusz commented May 28, 2024

Vastly different SVG markup could result in nearly identical rendered images and the other way around. So the recommended way would be to first rasterize the SVG and create an Content-Code Image. The ISCC-SDK does not yet have support for SVG files, but it will likely be added soon.

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