I tried adding -g0 and -w2048 to the line $page = exec(

just before the -c and -r settings. doesnt make any difference (Edit: It corrupted the script, made it nonfunctional. Had to re-up your script.)

I would like to change the gap width to zero. It is defaulted to 0... weird?

Also I would like to be able to change width size of the shots with "-w".

EDIT: Resolution is included by default - sorry for overlooking this.

Thanks for your assistance.