Subida de código

This commit is contained in:
2026-07-20 14:42:39 +02:00
parent f0153ca8e8
commit 6ae2dba12b
6 changed files with 132 additions and 24 deletions
+12
View File
@@ -0,0 +1,12 @@
import os, subprocess
directory = 'heic2'
for folder,subfolder,files in os.walk(directory):
for filename in files:
if filename.lower().endswith(".heic") or filename.lower().endswith(".HEIC"):
print('Converting %s' % os.path.join(folder, filename))
bashCommand = "heif-convert -q 100 \'/home/jesusjmma/proj/LogoImagenes/"+folder+"/"+filename+"\' \'/home/jesusjmma/proj/LogoImagenes/"+folder+"/"+filename.replace('.HEIC', '.jpg')+"\'"
print(bashCommand)
result = subprocess.run([bashCommand], shell=True)
continue