HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES

12 visualizzazioni (ultimi 30 giorni)
ajith
ajith il 29 Mag 2013
Commentato: yasser il 19 Apr 2021
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
  2 Commenti
Walter Roberson
Walter Roberson il 13 Giu 2013
Please do not SHOUT.
ajith
ajith il 13 Giu 2013
sorry for my mistake and also clarify that. i only ask my doubt regards the program sir

Accedi per commentare.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 29 Mag 2013
Modificato: Azzi Abdelmalek il 29 Mag 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 Commenti
Kostas
Kostas il 24 Nov 2018
It is not "nume1" but numel
yasser
yasser il 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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by