php_bw_jpg_from_rep_dim

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

php_bw_jpg_from_rep_dim creates an image file specified by the output_path variable from the replay file that was found at rep_path using the specified size. 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