If this is my url for the image: https://static.www.nfl.com/image/private/h_100,f_auto,q_auto,c_fill,g_auto/league/jccqiejlzdigw2zwxx2n
I've previously downloaded images from a url that was http and not a server in the following code but can't figure out how to download an image from cloudinary.
var imageURL = "http://www.nfl.com/static/content/public/static/img/fantasy/transparent/512x512/";
var imageName = imageURL + playerID + ".png";
var localFileImage = playerID + ".png";
var fileRepository = "/01 feedRepository/IMAGE_FILES/";
var playerName = playerLastName + "_" + playerFirstName;
getJSONFile(imageName, fileRepository);
...
I've tried this, which works from the terminal but not from AE:
app.system.callSystem("curl -o ~/Desktop/OLU474619.png https://static.www.nfl.com/image/private/h_100,f_auto,q_auto,c_fill,g_auto/league/jccqiejlzdigw2zwxx2n.png");
I realized that the app.system.callSystem() does actually work but without app.
So it would look like this:
This allows me to download the cloudinary image to a specific directory with simplicity.