Log in

View Full Version : Image XML question



RTFallen
June 24th, 2014, 09:02
I was wondering if there was a way to to control the initial view size of an image through xml. I'm thinking a size tag, but I'm wanting to make sure before I mess with it.

Resire

Moon Wizard
June 24th, 2014, 09:25
There's a way to specify the initial image window size, and the image is zoomed to fit width or height (whichever is smaller). In CoreRPG, the window size is undefined to allow the image to expand the window until the bounds of the desktop are reached, or the image size is full scale.

There is no way to specify the initial viewport in XML. However, there is a imagecontrol.setViewpoint that takes a center point and a zoom level. You could call this in the onInit handler for the imagecontrol.

Regards,
JPG

RTFallen
June 24th, 2014, 09:30
Thanks JPG. This is for a AaW module. Was just trying to find a way around having to change their image's dimensions in a image editing program.

Resire

Moon Wizard
June 24th, 2014, 10:57
You might want to check with Doug on what we recommend for module image sizes and compression for modules.

Regards,
JPG

RTFallen
June 24th, 2014, 12:57
Will shot him a PM.

Resire

damned
June 24th, 2014, 13:03
Resire - resize the images. They are way too big in the supplied format!

RTFallen
June 24th, 2014, 13:13
I resized them. Just wanting to get the recommended sizes for future refereance.

Resire

Trenloe
June 24th, 2014, 15:22
I resized them. Just wanting to get the recommended sizes for future refereance.

If they are images (i.e. not maps) resize them so that fit on a screen OK - there is no need to have images any bigger. For the AaW material I am converting this usually means something like 1000-1200 width for landscape views and 700-800 height for portrait views. Also save as JPG with around 60% compression - the size should be below 500KB to keep sharing speeds down.

If they are maps you will probably want to resize so that a 5-foot grid is a reasonable size (around 50 pixels or so). And use JPG format with compression to reduce the map size - experiment with compression levels so that the map is well below 1MB in size, closer to 500KB if at all possible; but is still good quality. 60% is usually a good level.

I had to go through a couple of the AaW modules produced to re-do most of the images for re-release by AaW as they were basically a straight extract from the PDF and way too big.

RTFallen
June 24th, 2014, 22:45
If they are images (i.e. not maps) resize them so that fit on a screen OK - there is no need to have images any bigger. For the AaW material I am converting this usually means something like 1000-1200 width for landscape views and 700-800 height for portrait views. Also save as JPG with around 60% compression - the size should be below 500KB to keep sharing speeds down.

If they are maps you will probably want to resize so that a 5-foot grid is a reasonable size (around 50 pixels or so). And use JPG format with compression to reduce the map size - experiment with compression levels so that the map is well below 1MB in size, closer to 500KB if at all possible; but is still good quality. 60% is usually a good level.

I had to go through a couple of the AaW modules produced to re-do most of the images for re-release by AaW as they were basically a straight extract from the PDF and way too big.

Thanks Trenloe. I think between you and Doug I have an idea on what I need to do with the images.

Resire

RTFallen
June 24th, 2014, 23:17
Anyone up for helping me test share speeds, and image quality?

Resire