Home > Back-end >  Image conversion in python
Image conversion in python

Time:06-02

I have a folder which contains 2 folders with images in them. The images are in .obj format and I would like to do a for loop to convert from .obj to .jpg

Any help will be greatly appreciated!!

CodePudding user response:

You can use this git repo Linkfor your use, a package created for converting obj files to jpg created by Peter Clausen. For going into the folder and checking each of the files with ".obj" extension.

Check out this discussion if you need more options to going through the required folders Discussion Link

import glob, os
os.chdir("/mydir")
for file in glob.glob("*.obj"):
   //convert from obj to jpg
  • Related