1. collage

This method is used for creating all kinds of photo effects presented at Funny.Pho.to.

Parameters:

Name Type Minimum value Maximum value Default value Description
template_name string      

The name of a template you want to use. Should be written in a lower case. If the name of a template consists of several words, they should be separated with the underscore symbol. Example: http://funny.pho.to/phone-in-hands/ effect has the "phone_in_hands" template_name parameter (which is derived from the effect's URL).

template_variant int 0    

Some templates / effects have variations. This parameter is used to set the variation number (starting from zero).

crop_portrait bool FALSE    

This parameter determines whether the 'face auto crop' option will be applied to the image. This parameter is only used in 'non-facial' templates, as in 'face detection' templates the face is cropped by default. If this parameter is true, and the template can host several user photos, each of the photos will be cropped.

text string      

User-defined text to be placed on the resulting image. Base64 encoding is used. Adding usert-defined text is possible only with templates that support text adding. User-defined text will be placed in a particular place predefined by the designer. Text color and style are also predefined. If you are not happy with the text style defined by a template, use the write_text method.

text2 string      

Another user-defined text caption. Its properties are the same as in text parameter. The text2 parameter is used in a limited number of templates.

animation bool FALSE    

This parameter determines whether the resulting photo effect will be static or animated. This parameter can be only true in templates that support animation. If a template doesn't support animation, the animation parameter cannot be true (otherwise an error will occur).