MAP sample portlet usage scenario #10

In this scenario, the MAP sample portlet is used to preserve the aspect ratio of the image during scaling by specifying the v.width and v.height of the image.

The aspect ratio of the image is preserved during scaling. The input parameters for specifying scaling are v.width and v.height, which refer to the output image width and height in pixels respectively. The transcoder does not scale images larger that the source by default. However, this can be overridden through the use of the v.scaleLarger URL parameter.

Generated output from scenario using the provided scenario and information

Generated image parameter output:
/map/map/wps/PA_MAPSample/images/testimg-vga-02.jpg?v.imgHost=hostname.example.com&v.imgPort=examplePort&v.width=v.width&v.height=v.height



Terms of use
(C) Copyright IBM Corporation 2012. All Rights Reserved.