Some png files won't upload
See original GitHub issueExpected Behavior
You should be able to upload a png as a new sprite or new costume. A student at my Scratch Club was trying to upload images they had found on the web. Lots were fine, but some just did nothing. They shared one of the files with me and I was able to reproduce the problem.
Actual Behavior
Uploading some png files doesn’t do anything. It doesn’t create the sprite, and doesn’t give any error feedback.
In the console:
Failed to load resource: the server responded with a status of 404 ()
raven.js:55 vm TypeError: Cannot read property 'assetId' of null
at i (lib.min.js:53)
at lib.min.js:53
a.(anonymous function) @ raven.js:55
lib.min.js:75 Uncaught (in promise) TypeError: Cannot read property 'name' of undefined
at e.value (lib.min.js:75)
at e.set (lib.min.js:75)
at lib.min.js:133
beta.scratch.mit.edu/:1 Uncaught (in promise) Sprite Upload Error: TypeError: Cannot read property 'bitmapResolution' of undefined
Steps to Reproduce
Try uploading this png as a sprite:
If uploading/downloading from github has somehow ‘fixed’ the file, I have the original shared with me.
Operating System and Browser
Seen on HP Chromebook and MacOS (both Chrome)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Look! 5 Methods to Fix PNG Files Not Opening in Windows 10 ...
1. Repair the Windows Photo Viewer, Click "Settings" > choose Apps, then click Apps & features. · 2. Use PNG File Repair Tool...
Read more >Tested Solutions: Can't Open PNG Files on Windows 10/11?
i. Why Can't You Open A PNG File? · When there is a virus in the system's storage device. · When you frequently...
Read more >PNG files won't upload on websites - Procreate Folio
This means you don't need to navigate to the correct folder all the time if uploading the same picture to multiple sites. Simply...
Read more >I am not able to upload .png files in Photos. They are being ...
Google photos skips the .png files when i try to upload them. The file size is between 20-30 MB or less. Facing the...
Read more >Why isn't my PNG file uploading? - Redbubble Help Center
Why isn't my PNG file uploading? ... This is an issue we've seen with GIMP files. We're not quite sure what's causing the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all,
I’ve actually wondered if uploading was recently broken. I haven’t done much testing, but the only graphics I’ve been able to upload have been graphics that I’ve downloaded first from the asset server.
It’s definitely not just PNG files; this SVG won’t upload either.
After failed sprite uploads, using the sprite selector to choose and add a sprite results in blank sprites (named after the attempted uploads) showing up. Selecting those blank sprites crashes the GUI.
Please let me know how I can help test things.
Eventually I got the files to upload using Safari browser instead of Chrome. (I had been running with all extensions OFF in Chrome, and I was saving from Photoshop to PNG format, with file size <10k, no metadata saved, no spaces in filename).