Skip to main content
Participant
November 8, 2016
Question

Download image from URL

  • November 8, 2016
  • 2 replies
  • 8995 views

Hi,

I need to download images from a webserver and have to display them on a catalog. This catalog should become a product catalog.

More info: The idea is that retailers can upload their product images on a webserver. An Indesign script should dynamically download these images and create a product catalog out of them. I'm currently stuck with coding the image download process. Is it possible in extendscript to download files given a URL?

Help is very appreciated.

This topic has been closed for replies.

2 replies

Participant
November 10, 2016

Aren't there any easier solutions?

For example, I've found this solution: javascript - How to download an image from url to use in Photoshop scripting (ExtendScript Toolkit) - Stack Overflow

However, it doesn't work for me since app.system() seems not to be valid. Why?

Community Expert
November 10, 2016

However, it doesn't work for me since app.system() seems not to be valid. Why?

What is your version of PhotoShop?

app.system() is working with e.g. PhotoShop CC 2017.

Just tested Fabian's line of code from Stack Overflow with PhotoShop CC 2017.

It's working. The png landed on my desktop.
Mac OSX 10.10.5.

Regards,
Uwe

Known Participant
July 27, 2019

Would the be a way to download the image into memory from the URL and place it into an active document rather than save it to desktop? I have thousands of products that need to have dimensions added to. I read the dimensions from a CSV file using a script. I currently have to scrape the images using an excel macro but want to see if I can scrape the image using Photoshop Javascript. I'm using OS X.

Jump_Over
Legend
November 8, 2016

@Hi,

Take a look here:

Re: HTTP Upload file with Socket

I mean post with link to getURL.jsx

Trevor:
Legend
November 9, 2016