Search

Generate Thumbnail

Last Updated: Nov 4, 2020

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
height Height of the thumbnail
location Thumbnail path in client machine

Returns

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

Sample

Generate Thumbnail (123456abcs, https: //jiffyai.azure, https: //docs.jiffy.ai/image.png, , , 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 “ and height ” 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?