Modify function to calculate ppi, recive a file(mxml, zip and gz)