Exam forms ask for a photo and a signature in an exact pixel size and an exact KB range. Pick what the form wants, put your picture in, and take the file.
1 · What does the form want?
Every board writes its own rules, and they change. Check these numbers against your own notification before you upload — this page cannot know which exam you are filling.
Your own numbers
2 · The picture
The picture is fitted into the shape the form wants, with white filling any gap — so a tall photo is not squashed into a wide box.
How it works. The picture is drawn at the exact pixel size the form asks for, then written out at falling quality until it is under the upper KB limit. If the result lands under the lower limit — some forms reject a file for being too small — the quality is raised again until it sits inside the range.