Dsco provides load-balanced image servers that can be used by retailers to download product images of various sizes and dimensions to their eCommerce system. We do this by allowing you to append certain parameters to the end of the image URL and, based on the parameters and values you provide, our image servers will return the image you request in the size and dimensions you need.
The "maxX" parameter specifies the maximum width, in pixels, for the given image that you would like returned.
Specifying "maxY" instructs the image servers to return an image with the given value as the maximum height, in pixels.
If an image is not square, the image will be resized to its original proportions with the maxX and maxY being applied to the maximum width and height of the final image.
Some systems may require that images be a specific width and height. Specifying "pad=1" within the request URL instructs the image servers to resize the image so that the height and width match the maximum height or width specified. For example, if you specify a maximum width of 100 and the original image is 300 by 200, the resulting image will be 100 by 100 pixels. If you don't specify a maximum width or height and you specify "pad=1" then the resulting image will be 300 by 300 pixels. When using the "pad=1" option, both the "maxX" and "maxY" parameters must be used as well.
When requesting specific sizes, if the original image format supports transparency, the space that is "filled in" by the image servers when padding the image width or height, depending on the dimensions of the original image, will be transparent. If the image format does not support transparency, the padded area will be white. For example, images with a PNG or GIF extension may support transparency although JPG does not.
Here are a few example image URL's that employ each of the different image resizing options provided by Dsco:
Maximum X and Y: http://images.dropship.com/7e5bdd023bc_1024-768.jpeg?maxX=240&maxY=240
Square Image: http://images.dropship.com/7e5bdd4223c_1024-768.jpeg?maxX=100&maxY=100&pad=1