Recent UPSC notifications ask for a photo taken within the last 10 days with the candidate's name and the date of the photo printed on it, in a plain background, without glasses or cap. Take the photo, add the text strip in any editor, then use the UPSC photo preset here to hit the 350×350 pixel size and the 20–300 KB range.
The signature uses the same limits; use the UPSC signature preset after scanning it on white paper.