_export_agent

Specifies who will act as the agent for the exported image data.

Default Value

Defaults to "picnik.com".

Remarks

You can use this parameter to control how the exported image information is sent back to you. Normally, information about the exported image (either a URL pointing to the new image, or the image data itself) is posted to you from Picnik's servers. You can use the _export_agent parameter to change the source of the export.

The default value, "picnik.com", indicates that the export will originate from Picnik's servers.

The other option for this parameter is "browser". In this case, the export call will originate directly from the user's browser. And because the call originates from the user, any cookies or session information that you've associated with the user will be available to your export script.

Note that the value you specify for this parameter affects which values are permitted for _export_method.

See Also

_export, _export_method, _export_field

Samples

Refer to the sample for _export. In that sample we use Javascript to display the exported image, and because Javascript does not have the ability to handle HTTP POSTed image data, we specify _export_agent=browser. This tells Picnik to give us a URL to the image data that Javascript can handle.