[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vt/ - Virtual Youtubers

Search:


View post   

>> No.46582378 [View]
File: 34 KB, 744x771, file.png [View same] [iqdb] [saucenao] [google]
46582378

>>46580832
>convert manually every single time
this thought never cross your mind?
its shitcode but its valid

dont use that use this instead
>from PIL import Image
>import os
>for file in os.listdir(os.getcwd()):
>if file.endswith(".webp"):
>with Image.open(file).convert("RGB") as F:
>F.save(f'{file[:-5]}.png', 'png')

if you want it to delete the webp file add
>os.remove(file)
in the loop

add formatting yourself

Navigation
View posts[+24][+48][+96]