We present GASPHOT , a tool for automated surface photometry and morphological classification of galaxies in deep and wide fields . The requirements for any such tool are reviewed , and its use for the classification of high-z galaxies is presented . In the case if HDF-like images , for galaxies having a magnitude ranging from 24 to 27.5 , the uncertainties on the photometric parameters derived from GASPHOT are respectively \Delta M = 0.02 - 0.1 , \Delta \log R _ { e } \approx 0.03 , \Delta n = 0.02 - 0.5 .