Text this: In situ coherent diffractive imaging