Open topic with navigation

# CreateImage

Creates an image file from a video frame stored in the rolling buffer.

HPE Media Server creates the image from a frame as close as possible to the specified `time` value. However, if there is no video that corresponds exactly to the requested time, the actual timestamp of the returned frame may differ.

Parameter | Description | Required
--- | --- | ---
OutputFormat | The output format for the image. The default returns a JPEG image. | No
Stream | The stream in the rolling buffer to create the image from. | Yes
Time | The time that the desired frame occurs. (EPOCH milliseconds or ISO-8601 format). You must use UTC time. | Yes

You can use the parameters Output and FileName to write the image to disk. If the value you specify for FileName contains a file extension that matches a supported image format, HPE Media Server will output the image in this format.

## Example

    http://localhost:14000/action=CreateImage
                                        &Stream=BBCNews
                                        &Time=1430214314000
                                        &OutputFormat=tiff

The following example demonstrates how to write a PNG image to disk:

    http://localhost:14000/action=CreateImage
                                        &Stream=BBCNews
                                        &Time=1430214314000
                                        &Output=File
                                        &FileName=C:\MediaServer\create_image.png

## Response

The action returns the image.

© 2017 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm