HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES

23 次查看(过去 30 天)
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
  2 个评论
ajith
ajith 2013-6-13
sorry for my mistake and also clarify that. i only ask my doubt regards the program sir

请先登录,再进行评论。

采纳的回答

Azzi Abdelmalek
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
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 CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by