A Brief Explaination of Scale
Scale dictates the “absolute” Size of an image…
example: you have an image that is, say 320x240
Scale=“100” will display it at the exact size (ie “100” = 100% Exact Dimension)
So… for example your image is 320x240 and if you use the following code…
<image image=“@@album_cover” x=“0” y=“0” w=“640” h=“640” scale=“100” />
it will display your 320x240 at 640x640 Exactly
Now, saying that, it will also Stretch the image to those Dimensions.
To Keep Proper “Aspect Ratio” of the Original image… this is where the command
scale_type comes into play…
Setting scale_type=“fixratio” will Auto resize the image above to 640x480 (Lowering the Vertical Dimension to Keep it in Proper Aspect Ratio)
Setting scale_type=“pan” if your image is Larger than then Specified Dimension this Command will only display a Portion of the Image … the align command specifies where to ‘pan’ top,bottom,left or right
Example: your image is 500x833 Dimension
<image image=“@@album_cover” x=“0” y=“0” w=“500” h=“500” scale=“100” scale_type=“pan” align=“top” />
This will Display a 500x500 “Wih the Bottom Cropped” Image of the original 500x833 image.
bg=“1” (bg = background) this command sets images “On top of” or “Under of” other elements.
Controls the order of the layers of visual elements.