Topic:   Question about image size   (Read 19281 times)


0 Members and 1 Guest are viewing this topic.

Charlo


  • GMG-er

  • **


  • Posts: 451
Question about image size
« on: October 16, 2010, 08:01:02 PM »
Does anybody know what the average size for a card's image is?  We're talking the full-width image, with no text on the card.  I'm curious because I'm currently making a game that utilizes full-screen images exclusively, and I wonder if I can expect to hit the 10 MB limit before I use all 250 cards.   ;D

Silverwind


  • ^ This guy is amazing.

  • ****


  • Posts: 2805

  • For the glory of my maker
Re: Question about image size
« Reply #1 on: October 17, 2010, 01:06:12 AM »
The picture box in the Text, Picture and Buttons layout is 311x315 pixels, the one in the Picture and Buttons layout is 626x315 and the one in the full Picture layout is 626x375.

This is under the Large Game Window setting. :)
I survived the spammage of 2007

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Question about image size
« Reply #2 on: October 17, 2010, 05:53:39 AM »
Use GM Toolkit to compress card pictures in your source file that you don't expect to modify again. (if you modify a compressed picture it becomes uncompressed)

After you compile your game, run the compression again on your compiled app to get a nice, small game.
« Last Edit: October 17, 2010, 05:53:55 AM by Mike_Richardson »

Charlo


  • GMG-er

  • **


  • Posts: 451
Re: Question about image size
« Reply #3 on: October 17, 2010, 01:26:45 PM »
Quote
The picture box in the Text, Picture and Buttons layout is 311x315 pixels, the one in the Picture and Buttons layout is 626x315 and the one in the full Picture layout is 626x375.

This is under the Large Game Window setting. :)
Sorry, I should have been more clear, I meant size in kilobytes.   :P

Al Staffieri


  • GMG-er

  • **

  • no avatar

  • Posts: 452

  • I love GameMaker
Re: Question about image size
« Reply #4 on: October 17, 2010, 04:31:38 PM »
Quote
Sorry, I should have been more clear, I meant size in kilobytes.   :P

It believe it depends on the picture. They will all be different sizes depending on what's in it. A lot of white space makes the size be less I think.

The limit for the file size is 16Mb.

Charlo


  • GMG-er

  • **


  • Posts: 451
Re: Question about image size
« Reply #5 on: October 17, 2010, 07:07:39 PM »
Quote

It believe it depends on the picture. They will all be different sizes depending on what's in it. A lot of white space makes the size be less I think.

The limit for the file size is 16Mb.
Oh, I'm not sure where I got 10 MB...anyway, thanks for the info.  Most of my cards have a lot of black space, is that equivalent to white space in terms of file size?  

GMG Mike


  • Administrator

  • GMG-er

  • *****

  • no avatar

  • Posts: 536
    • mikerichardson.name
Re: Question about image size
« Reply #6 on: October 17, 2010, 07:51:40 PM »
Any large blocks of solid color will result in a smaller picture. Uncompressed PICT actually uses a very weak compression called RLE, which only works when there's large blocks of the same color.