HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES

4 vues (au cours des 30 derniers jours)
ajith
ajith le 29 Mai 2013
Commenté : yasser le 19 Avr 2021
HOW TO CHANGE MULTIPLE JPG TO PNG IMAGES
  2 commentaires
Walter Roberson
Walter Roberson le 13 Juin 2013
Please do not SHOUT.
ajith
ajith le 13 Juin 2013
sorry for my mistake and also clarify that. i only ask my doubt regards the program sir

Connectez-vous pour commenter.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by