Memory Use, Download size in connection to Image Size

Discussion and feedback on Construct 2

Post » Sat Jan 14, 2017 2:48 pm

Hi,

I have a question about the memory use and the download size in connection to the image size. I understand, that large images make more memory use and a higher download size.
My question is on which image size this is depending. Is it my source image, which i made and than open in the image editor to give it to my sprite? If I have a very large source image but I edit it in the image editor by the "resize" button, will it then also affect the download size and memory use to be smaller? Or do I have to redo the original image which I open in the image editor?

Thanks a lot for any reply! Highly appreciated.
B
6
S
1
Posts: 40
Reputation: 464

Post » Sun Jan 15, 2017 8:12 pm

I'm not 100% sure on this, but it would be logical that the resize option resizes the image used by that sprite. You can easily test this: open a 3000x3000 PNG file and resize it to 300x300, then save your project. Does the capx file size reflects the 3000x3000 sized image or the resized one?
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

Post » Mon Jan 16, 2017 1:00 am

glerikud wrote:I'm not 100% sure on this, but it would be logical that the resize option resizes the image used by that sprite. You can easily test this: open a 3000x3000 PNG file and resize it to 300x300, then save your project. Does the capx file size reflects the 3000x3000 sized image or the resized one?


:) thanks for your reply. I actually just did test this and by coincidence I did even use the exact same numbers u suggested :). Allthoug I didnt test with saving the capx but the showed appr memory use at the bottom hitns that it really is depending on the image of the image editor and not of the original source file. So you are right.
B
6
S
1
Posts: 40
Reputation: 464

Post » Mon Jan 16, 2017 1:48 am

The source image is not a part of the project. Once you load it into your project, C2 makes a copy of that source image. Resizing it with the built-in image editor will update the image (in project, not the source) so also will affect the download size and memory usage.

If you would for instance resize the source file (in external editor), nothing would happen in the project itself.

Note that resizing the sprite object won't have such effect as this will resize only the object, not the image.
ImageImageImage
B
27
S
16
G
80
Posts: 1,015
Reputation: 44,749

Post » Mon Jan 16, 2017 11:07 am

See memory usage in the manual.

In short, the source image dimensions determines the memory usage (i.e. number of pixels). However the download size depends more on the content of the image itself - e.g. a solid red image will compress to almost nothing, but a detailed image will take more data.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Wed Jan 18, 2017 10:29 am

thanks for the replys. Best community!!!
B
6
S
1
Posts: 40
Reputation: 464


Return to Construct 2 General

Who is online

Users browsing this forum: bounty, jook00 and 17 guests