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

Svg check for large files #103

Merged
merged 3 commits into from
Oct 14, 2021
Merged

Svg check for large files #103

merged 3 commits into from
Oct 14, 2021

Conversation

AnderbergE
Copy link
Contributor

  • Big svg files will not have a complete first chunk to check for end tag in the svg, hence it is not possible to use isSvg.
  • Updated file-type to latest version to get more correct file types.
  • New test for the more common svg file type. That starts with an xml version and doctype.

Copy link
Collaborator

@LinusU LinusU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat 👍

@LinusU
Copy link
Collaborator

LinusU commented Jul 27, 2018

Argh, git is messing up the line endings making the size vary...

Maybe just sip the size check at all for those two tests?

@AnderbergE
Copy link
Contributor Author

Oh, of course, that's why I scratched my head about those failing tests.
Not sure it the size tests make any difference anyway, so I say skip them :)

@AnderbergE
Copy link
Contributor Author

I removed the size test in my latest commit, how does it work on your end?

@LinusU LinusU force-pushed the master branch 2 times, most recently from 20c5666 to 53f6290 Compare October 14, 2021 08:26
* Big svg files will not have a complete first chunk to check for end tag in the svg, hence it is not possible to use isSvg.
* Updated file-type to latest version to get more correct file types.
* New test for the more common svg file type. That starts with an xml version and doctype.
@LinusU LinusU merged commit 59609db into anacronw:master Oct 14, 2021
@LinusU
Copy link
Collaborator

LinusU commented Oct 14, 2021

Sorry for the delay on this...

@LinusU
Copy link
Collaborator

LinusU commented Oct 14, 2021

This was released as 🚢 2.9.1

@AnderbergE
Copy link
Contributor Author

No worries at all. I have been using my workaround and I appreciate the merge, good job!

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

Successfully merging this pull request may close these issues.

2 participants