Search

Generate Thumbnail

Last Updated: Feb 14, 2022

Articles

Use this function to generate the thumbnail to the given remote image and downloads the image to the given location.

Syntax

Generate Thumbnail (subscription_key, service_url, image_url, width, height, location)

Parameters

Input Parameter Name Description
subscription_key Azure cognitive service computer vision subscription key
service_url Computer vision endpoint
image_url Remote image URL
width Width of the thumbnail in pixels
height Height of the thumbnail in pixels
location Path to store the thumbnail in client machine

To know more about subscription_key and service_url, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | Path and Size of the thumbnail
  • On Failure returns 0 | Error Message

Sample

Generate Thumbnail (123456abcs, https: //jiffyai.azure, https: //docs.jiffy.ai/image.png, 50, 50, C:\Invoices)

  • Uses the subscription_key 123456abcs to connect to the service https: //jiffyai.azure, generates a thumbnail of the remote image https: //docs.jiffy.ai/image.png with width 50px and height 50px and saves it in the path C:\Invoices.
    Returns the Path and Size of the thumbnail.

To view all the MSVision functions, click here.

Did you find what you were looking for?