我之前在以下代码中从 http 而非服务器的 url 下载了图像,但不知道如何从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);
...
我试过这个,它可以在终端上工作,但不能在 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");