View Single Post
davidp
Senior Member
Lone Wolf Staff
 
Join Date: Jun 2011
Posts: 1,090

Old July 22nd, 2014, 06:27 AM
The intent with smart images and images in general in Realm Works is for display on a computer screen. Due to that intent, having an image larger than around 4096 x 3072 pixels will be largely wasted as you wouldn't be able to view the full image on most monitors today without scrolling or zooming out.

Also, we provide a warning for sizes above 4096 x 3072, but you could continue to import the image.

The second constraint that you will run into is Realm Works is a 32-bit application. It is limited in the amount of memory it can use at once to at most 2 GB even if you are running on a machine that has more memory than that. Larger images take up more space.

For example, if you have an image that is 8,192 pixels by 8,192 pixels, when uncompressed and in memory for use, it will take up 268,435,456 bytes of memory or a quarter of a GB. Realm Works combines masks together to form the final image displayed and so during manipulation, it can require several copies of images of this size in memory at once. It quickly puts pressure on the memory available to Realm Works and could lead to an out-of-memory condition.

Also, keep in mind that PNG or JPG files are compressed image formats. But when displaying or manipulating those images, they have to be uncompressed in memory and so will take up typically 4 bytes per pixel.

All of these reasons went into our decision to limit the size of the files that can be brought into Realm Works to 30,000,000 bytes and to warn users when they try to import images more than 4096 x 3072 pixels in size.
davidp is offline   #2 Reply With Quote