Discuss Scratch
- Discussion Forums
- » Suggestions
- » Stop Wasting Space - Stop Upscaling Uploaded Images
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
I was making a demo project showcasing full-motion video on Scratch, and I downloaded the project to my computer as a safeguard against an editor crash or the project refusing to save.
All of the project's assets at that point were only about 5 MiB total. However, when I downloaded the project, I saw that the size had ballooned to a staggering 88.6 MiB. I opened up the project in an archive program to see what had happened, and I discovered that Scratch had nearest-neighbor upscaled every single image by 200%, and then resaved them as jpg, incurring quality loss. A test I did tells me that it might be using lossless JPEG, which is a thing, by the way, but it's still an asinine choice. 2023 EDIT: Actually, it's even worse than that - images that are scaled by Scratch are saved as PNG, but if they were uploaded as JPG, they retain their JPG extension inside the project file, which is incorrect.
My suggestion is that all JPEG images imported into the editor should not be reprocessed in this manner, but instead saved in their original format, and the same should be done for PNG images, which are subject to similar processing. Implementing this will result in less server load because of smaller projects, faster editing, and happier Scratchers. It will also help out Scratchers who are using sub-par hardware or internet connections.
All of the project's assets at that point were only about 5 MiB total. However, when I downloaded the project, I saw that the size had ballooned to a staggering 88.6 MiB. I opened up the project in an archive program to see what had happened, and I discovered that Scratch had nearest-neighbor upscaled every single image by 200%, and then resaved them as jpg, incurring quality loss. A test I did tells me that it might be using lossless JPEG, which is a thing, by the way, but it's still an asinine choice. 2023 EDIT: Actually, it's even worse than that - images that are scaled by Scratch are saved as PNG, but if they were uploaded as JPG, they retain their JPG extension inside the project file, which is incorrect.
My suggestion is that all JPEG images imported into the editor should not be reprocessed in this manner, but instead saved in their original format, and the same should be done for PNG images, which are subject to similar processing. Implementing this will result in less server load because of smaller projects, faster editing, and happier Scratchers. It will also help out Scratchers who are using sub-par hardware or internet connections.
Last edited by Flowermanvista (Nov. 22, 2023 17:07:59)
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- CatsUnited
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
Support. This would be a good optimisation to have and it improves image quality. I don't see a reason why this shouldn't be added in.
bottom text
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
After a quick test, I have discovered that Scratch also does this with PNG images - in the test case I used, the file size increased from 10 kB to 22.3 kB. The suggestion has been renamed appropriately.
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- BlueStarPort
- Scratcher
100+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
Support. It's kind of bad that they are upscaling images and making the quality worse, and also making it take up space.
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump again, maybe the buggy forums will actually bump it this time
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
^
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- BlueStarPort
- Scratcher
100+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump (it's on 2nd page)
- AFNNetworkK12
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
* every 24 hours please * bump (it's on 2nd page)
AFN!
| Okay | Hobbyist | Introvert | Active | OK! |
HELLO
- BlueStarPort
- Scratcher
100+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
It can be bumped if it's on the 2nd page.* every 24 hours please * bump (it's on 2nd page)
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- BlueStarPort
- Scratcher
100+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump (2nd page)
- DaEpikDude
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
Oh, is THAT why importing images into Scratch is so terrible? I discovered that Scratch had nearest-neighbor upscaled every single image by 200%, and then resaved them as jpg, incurring quality loss.
Definite support, if it's not really annoying to do for some reason. If the image is in the format that Scratch is apparently using anyway, why would you go through all this processing?
I remember at one point downloading some costumes I made ON SCRATCH, importing them into an offline project, and the 200% scaling thing happened. Why!?
And all the world over, each nation's the same,
They've simply no notion of playing the game.
They argue with umpires, they cheer when they've won,
And they practice beforehand, which ruins the fun!
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Flowermanvista
- Scratcher
1000+ posts
Stop Wasting Space - Stop Upscaling Uploaded Images
bump
Add a SPOOKY SKELETON to your project!
The Scratch 3 Project Save Troubleshooter - find out why your project won't save
ST, Please Add A Warning When A Size Limit Is Exceeded
My Dumb Creations - THE BEST ANIMATION | The Windows 98 Experience (made on Windows 98) | nobody cares about Me… | the2000 Reveals His New Profile Picture | Not Dumb Creations - Ten Years
Ctrl+Shift+Down for more…
Do evil kumquats keep eating your signature? Assert your dominance and eat the evil kumquats. Did you know that kumquats are only about the size of an olive?
- Discussion Forums
- » Suggestions
- » Stop Wasting Space - Stop Upscaling Uploaded Images