parse file when djpeg is used