HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
조회 수: 23 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!