Back to Website
Show / Hide Table of Contents

purchase-images-from-deposit-photos

  • Last updated on April 8, 2024
  • •
  • 1 minute to read

This task helps you purchase commercial images specified in the design from the Depositphotos service and embed full-fledged images in the design file.

It is assumed that at the design editing stage, the buyer only determines which commercial images should be used in the design. If the personalization is completed successfully and the user paid for the order, the project will be created. When processing this project, the purchase of the specified images will be made in Depositphotos on behalf of the tenant's account.

To avoid re-purchase upon restart, the task saves the purchased image as a special service artifact. If a service artifact is found for that image element upon restart, it is reused.

Parameters

  • depositPhotosApiKey (string) - the API key to access the Depositphotos service account.
  • depositPhotosLogin (string) - the login for the Depositphotos service account.
  • depositPhotosPassword (string) - the password to log in to the Depostiphotos service account.
  • size (string) - (optional) the size of the purchased images that determines their quality ("S","M","L","XL","Super"). The default value is "L".

Depositphotos allows you to retrieve vector images in EPS format. They are additionally packaged in a ZIP archive, which is saved as a service artifact.

  • allowVectorPurchase (boolean) - if true, allows purchasing vector images as shapes. If undefined, Depositphotos converts such image according to the size parameter.
  • epsConverterUrl (string) - the URL that links to the EPS conversion service.
  • epsConverterApiKey (string) - the API key of the EPS conversion service.

Example

{
    "description": "Purchase Depositphotos images",
    "name": "purchasing-dp-images",
    "type": "purchase-images-from-deposit-photos",
    "inputArtifacts": [
        "design"
    ],
    "parameters": {
        "depositPhotosApiKey": "*****",
        "depositPhotosLogin": "*****",
        "depositPhotosPassword": "*****",
        "size": "M",
        "allowVectorPurchase": true,
        "epsConveterUrl": "https://eps-converter.azurewebsites.net/api/v1/eps-converter/convert?crop=true",
        "epsConveterApiKey": "*****"
    },
    "outputArtifacts": [
        "dpdesign"
    ]
}
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback