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

ProbeError: unrecognized file format #61

Closed
yolpsoftware opened this issue Jun 3, 2021 · 3 comments
Closed

ProbeError: unrecognized file format #61

yolpsoftware opened this issue Jun 3, 2021 · 3 comments

Comments

@yolpsoftware
Copy link

Same error as in #57, but different image:

Stacktrace:

   at ParserStream.parserEnd (my-repo\node_modules\probe-image-size\stream.js:39:28)
    at Object.onceWrapper (events.js:421:28)
    at ParserStream.emit (events.js:315:20)
    at endReadableNT (_stream_readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Code used:

import probeImageSize from 'probe-image-size';

const result = await probeImageSize("https://upload.wikimedia.org/wikipedia/commons/8/82/Scotland_in_the_UK_and_Europe.svg");

Environment: node 14.15.1 on Windows 10
probe-image-size: 7.1.1

Other images that have the same problem:

https://upload.wikimedia.org/wikipedia/commons/3/3a/Locator_map_of_Azores_in_EU.svg
https://upload.wikimedia.org/wikipedia/commons/3/3e/EU-Portugal_with_Madeira_circled.svg
https://upload.wikimedia.org/wikipedia/commons/5/55/Gibraltar_location_in_Europe.svg
@puzrin
Copy link
Member

puzrin commented Jun 3, 2021

Thanks for report.

Reason is different. Sources use namespaced format: <svg:svg ...> (i never seen it before)

@rlidwka rlidwka closed this as completed in df34db4 Jun 3, 2021
@puzrin
Copy link
Member

puzrin commented Jun 3, 2021

Released 7.2.0

@yolpsoftware
Copy link
Author

Thanks, works perfectly.

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