DDS and PNMImageHeader()

It is claimed that the DDS format is supported by a panda out of the box. However, I used the PNMImageHeader () class to get headers data before loading, in order to prepare the mesh and perform mathematical calculations for the positing. However, as it turned out, PNMImageHeader () can not read DDS. Is there an alternative?

DDS has to be loaded via Texture, because it is a texture format, and not an image format like PNG. To be specific, DDS files support mipmapping, texture compression, 3D textures, cube maps, other pixel formats, etc. None of those things can be represented in PNMImage.

If you want to get it as PNMImage, I would suggest you load it into a Texture and then using store() to put the result in a PNMImage.