HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
5 ビュー (過去 30 日間)
古いコメントを表示
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
採用された回答
Azzi Abdelmalek
2013 年 5 月 29 日
編集済み: Azzi Abdelmalek
2013 年 5 月 29 日
f=dir('Yourfolder\*.jpg');
fil={f.name};
for k=1:numel(fil)
file=fil{k}
new_file=strrep(file,'.jpg','.png')
im=imread(file)
imwrite(im,new_file)
end
13 件のコメント
yasser
2021 年 4 月 19 日
When I use your code I found that error
Error using strrep
Char inputs must be row vectors.
Are there any explanation?
regards
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!