Discuss Scratch

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.

Last edited by Flowermanvista (Nov. 22, 2023 17:07:59)

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.
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.
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
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump again, maybe the buggy forums will actually bump it this time
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

^
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

BlueStarPort wrote:

bump (it's on 2nd page)
* every 24 hours please *
BlueStarPort
Scratcher
100+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

AFNNetworkK12 wrote:

BlueStarPort wrote:

bump (it's on 2nd page)
* every 24 hours please *
It can be bumped if it's on the 2nd page.
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
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

Flowermanvista wrote:

I discovered that Scratch had nearest-neighbor upscaled every single image by 200%, and then resaved them as jpg, incurring quality loss.
Oh, is THAT why importing images into Scratch is so terrible?

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!?
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump
Flowermanvista
Scratcher
1000+ posts

Stop Wasting Space - Stop Upscaling Uploaded Images

bump

Powered by DjangoBB