I have a text file called :
ImageURLS.txt
And after reading in the text file using the line:
urlsToImgs = importdata('ImageURLS.txt');
This gives me a cell 1400 x 1 of urls in the form "http:// … .jpg"
I want to take these URL's of images and save them at a specific size (227 x 227) then save them to a specific sub-folder (Images)
for i = 1:1%length(urlsToImgs)
outfilename = websave(['PosImage: ', num2str(i)],['' urlsToImgs{i} '']); end
This is the code I tried to use but it throws the error:
Error using fopen
The file name contains characters that are not contained in the filesystem encoding.
Certain operations may not work as expected.
I dont believe this is the way to do what im asking however, and would like to know how to do so better.
Best Answer