-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Unknown Image Data Format Error when opening Part Details #425
Comments
Ok, checked the code further and when using the shopcart URL used to get the data for this dialog, I see no immidiate issue, the 96x96 replacement to 900x900 should still be valid. With this, using imageList, we actually could make the parts page even cooler by making it possible to flip through all big images, but that is more a feature request. The Image format is jpg. Is that what we expect? |
ok haha: I think we have our issue:
|
Ok, so they are filtering for Python User Agent. headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"
}
content = requests.get(url, headers=headers, timeout=10).content I will submit a PR to fix this |
Latest greatest KiCAD 8 and latest version of plugin.
I'm facing this when using the Part Details dialog.
I am unsure at this point if this has anything to do with KiCAD8 or if JLCPCB has played us here.
Suspicious code location where I think it goes wrong (the error must be form wxwidgets because it's nowhere in the plugin codebase):
kicad-jlcpcb-tools/partdetails.py
Line 128 in 20d6fd2
Any background info on this @Bouni? Happy to work on a possible fix, but I do not know what image format these were originally expected in and what wxwidgets can support out of the box.
The text was updated successfully, but these errors were encountered: