In FDTD, I’d like to import a 2D image from a jpg or png file and create a 3D structure by extruding the image in the z-direction exactly as described here. This example uses the image import wizard. However, I would like to do this with a python script. I see that there are functions such as stlimport which can import CAD files and importbinary which can import binary files. I can’t seem to find a function that import jpg or png files. I’d like to take advantage of an importimage function if it is available. Does something like this exist?