Skip to content

Commit 48c16fa

Browse files
Merge pull request #251952 from PatrickFarley/minor-updates
[ai-svcs] change urls
2 parents d616872 + dac9abf commit 48c16fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

articles/ai-services/computer-vision/how-to/generate-thumbnail.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ To call the API, do the following steps:
2727
1. Replace the value of `<thumbnailFile>` with the path and name of the file in which to save the returned thumbnail image.
2828
1. Replace the first part of the request URL (`westcentralus`) with the text in your own endpoint URL.
2929
[!INCLUDE [Custom subdomains notice](../../../../includes/cognitive-services-custom-subdomains-note.md)]
30-
1. Optionally, change the image URL in the request body (`https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Shorkie_Poo_Puppy.jpg/1280px-Shorkie_Poo_Puppy.jpg\`) to the URL of a different image from which to generate a thumbnail.
30+
1. Optionally, change the image URL in the request body (`https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png`) to the URL of a different image from which to generate a thumbnail.
3131
1. Open a command prompt window.
3232
1. Paste the command from the text editor into the command prompt window.
3333
1. Press enter to run the program.
3434

3535
```bash
36-
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westus.api.cognitive.microsoft.com/vision/v3.2/generateThumbnail?width=100&height=100&smartCropping=true" -d "{\"url\":\"https://upload.wikimedia.org/wikipedia/commons/thumb/5/56/Shorkie_Poo_Puppy.jpg/1280px-Shorkie_Poo_Puppy.jpg\"}"
36+
curl -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -o <thumbnailFile> -H "Content-Type: application/json" "https://westus.api.cognitive.microsoft.com/vision/v3.2/generateThumbnail?width=100&height=100&smartCropping=true" -d "{\"url\":\"https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png\"}"
3737
```
3838

3939
## Examine the response

articles/ai-services/computer-vision/includes/image-analysis-curl-quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ To analyze an image for various visual features, do the following steps:
3939
1. Copy the following command into a text editor.
4040

4141
```bash
42-
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v3.2/analyze?visualFeatures=Tags" -d "{'url':'https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Salto_del_Angel-Canaima-Venezuela08.jpg/800px-Salto_del_Angel-Canaima-Venezuela08.jpg'}"
42+
curl.exe -H "Ocp-Apim-Subscription-Key: <subscriptionKey>" -H "Content-Type: application/json" "https://westcentralus.api.cognitive.microsoft.com/vision/v3.2/analyze?visualFeatures=Tags" -d "{'url':'https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png'}"
4343
```
4444

4545
1. Make the following changes in the command where needed:
4646
1. Replace the value of `<subscriptionKey>` with your key.
4747
1. Replace the first part of the request URL (`westcentralus`) with the text in your own endpoint URL.
4848
[!INCLUDE [Custom subdomains notice](../../../../includes/cognitive-services-custom-subdomains-note.md)]
49-
1. Optionally, change the image URL in the request body (`https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Salto_del_Angel-Canaima-Venezuela08.jpg/800px-Salto_del_Angel-Canaima-Venezuela08.jpg`) to the URL of a different image to be analyzed.
49+
1. Optionally, change the image URL in the request body (`https://learn.microsoft.com/azure/ai-services/computer-vision/media/quickstarts/presentation.png`) to the URL of a different image to be analyzed.
5050
1. Open a command prompt window.
5151
1. Paste your edited `curl` command from the text editor into the command prompt window, and then run the command.
5252

0 commit comments

Comments
 (0)