php_bw_jpg_from_rep_ratio

void php_bw_jpg_from_rep_ratio(string mpq_dir, string replay_path, string output_path, int ratio, int quality=REPASM_LOW_QUALITY, int jpeg_quality=90, int rendering_mode=RENDER_ALL)

php_bw_jpg_from_rep_ratio creates an image file specified by the output_path variable from the replay file that was found at rep_path using the specified ratio. On jpg_from_rep functions, starting locations are visible only for actual players. Others (observers' starting locations, for example) are not rendered. Here's a description of each parameter :

See example here