How to get image original type

Hi,
I want to extract images from pdf and save image in jpg or png based on its original type using Aspose.PDF. how can I get its own original type?

@lucyqjz

We have responded to your similar inquiry in this thread where you can please follow up.