Discuss Scratch

Basic88
Scratcher
1000+ posts

Bitmap Resolution

While I was looking at the project.json, I saw something that said “bitmap resolution”. What is this?

I have moved to @BrowserExtension
imfh
Scratcher
1000+ posts

Bitmap Resolution

Scratch usually scales images to twice the original size so they look better when you press fullscreen. To save some processing time (at the cost of filesize), Scratch saves this enlarged image rather than the original. If bitmap resolution is 2, that means the saved image is twice the size of the rendered image in Scratch. If bitmap resolution is 1, that means it is the same as when viewed in Scratch.

Scratch doesn't always upscale images, if I remember correctly. If you upload a 960x720 image, the image in Scratch will be 480x360 while the saved image will stay the same (bitmap resolution = 2). It is mainly when you draw an image in the editor that it is upscaled. If you have heard of half-pixels that's what they are talking about.

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
memario1763
Scratcher
6 posts

Bitmap Resolution

imfh wrote:

Scratch usually scales images to twice the original size so they look better when you press fullscreen. To save some processing time (at the cost of filesize), Scratch saves this enlarged image rather than the original. If bitmap resolution is 2, that means the saved image is twice the size of the rendered image in Scratch. If bitmap resolution is 1, that means it is the same as when viewed in Scratch.

Scratch doesn't always upscale images, if I remember correctly. If you upload a 960x720 image, the image in Scratch will be 480x360 while the saved image will stay the same (bitmap resolution = 2). It is mainly when you draw an image in the editor that it is upscaled. If you have heard of half-pixels that's what they are talking about.

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)

Was a good coder. Now moving on…
Maximouse
Scratcher
1000+ posts

Bitmap Resolution

memario1763 wrote:

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)
It would be downscaled to 960x720.


This is Maximouse's signature. Learn more about signatures.
dynamicsofscratch
Scratcher
1000+ posts

Bitmap Resolution

memario1763 wrote:

(#3)

imfh wrote:

Scratch usually scales images to twice the original size so they look better when you press fullscreen. To save some processing time (at the cost of filesize), Scratch saves this enlarged image rather than the original. If bitmap resolution is 2, that means the saved image is twice the size of the rendered image in Scratch. If bitmap resolution is 1, that means it is the same as when viewed in Scratch.

Scratch doesn't always upscale images, if I remember correctly. If you upload a 960x720 image, the image in Scratch will be 480x360 while the saved image will stay the same (bitmap resolution = 2). It is mainly when you draw an image in the editor that it is upscaled. If you have heard of half-pixels that's what they are talking about.

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)

Maximouse wrote:

(#4)

memario1763 wrote:

Mildly confused here. If I uploaded a 15360×8640 image it'd be optimised to 480x360? (8640p -> 480p)
It would be downscaled to 960x720.
Both of you, stop necroposting

aII toasters toast toast, but what happens when there are no longer toasters being produced? will their technology simply become obsolete, with humans moving onto bigger, better things? will toast become a distant memory, written in textbooks of the future as foods us simpler generations ate? who's to say! society is constantly moving, changing, evolving, ideas being built upon, improved upon, theories being proven or disproven. are we but a blip on the timeline? sure, our names may not be remembered, but that's not the point. you can make a change. you can make a difference. you can make the world better, even if you don't know yet. and the first step is to go for it. even if you are afraid of failure. going back to the example of toasters, do you know off the top of your head who invented them? no? have you used one? probably. so, even if you don't remember my name, if I was able to help awnser your question, that is enough. if I was able to help you, even in the slightest way, this could push you to continue with scratch and not give up after the program crashes, and maybe one day learn other programming languages and change the world. everything is a cause and effect reaction, new inventions lead to the technology of the future, and even as the generations of the past are slowly forgotten, their influence lives on to this day, affecting how the world eventually turned out and how it will be for generations to come.

and, without toasters, we wouldn't have toast.


Regards
dynamicsofscratch

Anything above that grey line is a signature!
Also, anything can be put in your signature, (also referred as a siggy) including ads but! You cannot do anything else that violates the community guidelines as, you will be reported and you could be banned/muted.
Computer enthusiast, coder, designer and a offline veteran.
700th post

Powered by DjangoBB