How to save an image using its URL
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Arthur Melo
am 16 Okt. 2014
Kommentiert: Augusto Gabriel da Costa Pereira
am 11 Nov. 2022
I did this steps and it didn't worked!
url_img =
name_file_img =
20141015-00:00.jpg
>> urlwrite(url_img, name_file_img); Error using urlreadwrite>getFileOutputStream (line 245) Could not open output file "C:\Users\Albm\Documents\MATLAB\2014\10\15\2014\10\15\2014\10\15\2014\10\15\20141015-00:00.jpg".
Error in urlreadwrite (line 69) [file,outputStream] = getFileOutputStream(inputs.filename);
Error in urlwrite (line 38) [f,status] = urlreadwrite(mfilename,catchErrors,url,filename,varargin{:});
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 17 Okt. 2014
You need to use imwrite() if you want to save an image, not urlwrite().
4 Kommentare
Image Analyst
am 11 Feb. 2022
To get no additional losses, use PNG format
imwrite(rgbImage, 'satellite image.png');
Can you show an example of how you'd save your image array with urlwrite()? The documentation only shows how to save web pages as HTML format, not how to save image data in PNG format.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!