On this image generation webpage
[login to view URL]
The php script must make the same call as the "export" button (this has a javascript call function). The inputs must be the four values in the "Area to Export" boxes
The php script must have format, scale as variables
The png files downloaded this way must be stored with the call variables in the file name