I am experiencing some problems when I am doing server side conversion from pdf to jpg using imagemagick and ghostscript. Around half of the times I try, the output result becomes like the attached image

Does anyone know what could be causing this strange output??
