HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES

15 Ansichten (letzte 30 Tage)
ajith
ajith am 29 Mai 2013
Kommentiert: yasser am 19 Apr. 2021
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
  2 Kommentare
Walter Roberson
Walter Roberson am 13 Jun. 2013
Please do not SHOUT.
ajith
ajith am 13 Jun. 2013
sorry for my mistake and also clarify that. i only ask my doubt regards the program sir

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 29 Mai 2013
Bearbeitet: Azzi Abdelmalek am 29 Mai 2013
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 Kommentare
Kostas
Kostas am 24 Nov. 2018
It is not "nume1" but numel
yasser
yasser am 19 Apr. 2021
When I use your code I found that error
Error using strrep
Char inputs must be row vectors.
Are there any explanation?
regards

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by