You can also use command-line tools like ImageMagick to convert PNG to P2D.
The P2D extension is most commonly associated with older or specialized CAD systems (notably variants of P-CAD or proprietary schematic capture tools). These files contain vector data—mathematical descriptions of lines, arcs, and components. Unlike a PNG, a P2D file is "intelligent;" lines can be measured, components can be edited, and the design can be scaled without loss of quality. png to p2d converter
Beyond simple collision polygons, developers are using P2D files for innovative purposes. PNG to P2D Converter Guide Method 3: Using