You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirmed, and this should be relatively easy to detect, as it's an XML file that has "<svg" somewhere in the beginning...
It can be either the first tag, or a bit later.
However, note that if there is a long comment before the "<svg" tag, and this library reads just a bit of the file, it might just consider it as an XML file...
Looking at how much the library reads, I can see that for various files it reads up to 16KB (test available here by using FilterInputStream class ) , so SVG should usually be possible to detect.
I used this svg file https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/410.svg
Seems like there is some issue in the
magic.gz
filewell it results in svg is not added to
com.j256.simplemagic.entries.MagicEntries#entryList
:/The text was updated successfully, but these errors were encountered: