image_controller = client.image
ImageController
- Delete Custom Splashscreen
- Delete Item Image
- Delete Item Image by Index
- Delete User Image
- Delete User Image by Index
- Get Artist Image
- Get Genre Image
- Get Genre Image by Index
- Get Item Image
- Get Item Image 2
- Get Item Image by Index
- Get Item Image Infos
- Get Music Genre Image
- Get Music Genre Image by Index
- Get Person Image
- Get Person Image by Index
- Get Splashscreen
- Get Studio Image
- Get Studio Image by Index
- Get User Image
- Get User Image by Index
- Post User Image
- Post User Image by Index
- Set Item Image
- Set Item Image by Index
- Update Item Image Index
- Upload Custom Splashscreen
Delete a custom splashscreen.
def delete_custom_splashscreen(self)
void
result = image_controller.delete_custom_splashscreen()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | User does not have permission to delete splashscreen.. | APIException |
Delete an item's image.
def delete_item_image(self,
item_id,
image_type,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Query, Optional | The image index. |
void
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
result = image_controller.delete_item_image(item_id, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Delete an item's image.
def delete_item_image_by_index(self,
item_id,
image_type,
image_index)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | The image index. |
void
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.delete_item_image_by_index(item_id, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Delete the user's image.
def delete_user_image(self,
user_id,
image_type,
index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
user_id |
uuid|string |
Template, Required | User Id. |
image_type |
ImageTypeEnum |
Template, Required | (Unused) Image type. |
index |
int |
Query, Optional | (Unused) Image index. |
void
user_id = '000013ec-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
result = image_controller.delete_user_image(user_id, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | User does not have permission to delete the image. | ProblemDetailsException |
Delete the user's image.
def delete_user_image_by_index(self,
user_id,
image_type,
index)
Parameter | Type | Tags | Description |
---|---|---|---|
user_id |
uuid|string |
Template, Required | User Id. |
image_type |
ImageTypeEnum |
Template, Required | (Unused) Image type. |
index |
int |
Template, Required | (Unused) Image index. |
void
user_id = '000013ec-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
index = 44
result = image_controller.delete_user_image_by_index(user_id, image_type, index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | User does not have permission to delete the image. | ProblemDetailsException |
Get artist image by name.
def get_artist_image(self,
name,
image_type,
image_index,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Artist name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_artist_image(name, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get genre image by name.
def get_genre_image(self,
name,
image_type,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Genre name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
image_index |
int |
Query, Optional | Image index. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
result = image_controller.get_genre_image(name, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get genre image by name.
def get_genre_image_by_index(self,
name,
image_type,
image_index,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Genre name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_genre_image_by_index(name, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Gets the item's image.
def get_item_image(self,
item_id,
image_type,
max_width=None,
max_height=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
tag=None,
crop_whitespace=None,
format=None,
add_played_indicator=None,
percent_played=None,
unplayed_count=None,
blur=None,
background_color=None,
foreground_layer=None,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
format |
ImageFormatEnum |
Query, Optional | Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
image_index |
int |
Query, Optional | Image index. |
mixed
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
result = image_controller.get_item_image(item_id, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Gets the item's image.
def get_item_image_2(self,
item_id,
image_type,
max_width,
max_height,
tag,
format,
percent_played,
unplayed_count,
image_index,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
max_width |
int |
Template, Required | The maximum image width to return. |
max_height |
int |
Template, Required | The maximum image height to return. |
tag |
string |
Template, Required | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Template, Required | Determines the output format of the image - original,gif,jpg,png. |
percent_played |
float |
Template, Required | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Template, Required | Optional. Unplayed count overlay to render. |
image_index |
int |
Template, Required | Image index. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
max_width = 200
max_height = 48
tag = 'tag6'
format = ImageFormatEnum.WEBP
percent_played = 252.64
unplayed_count = 8
image_index = 102
result = image_controller.get_item_image_2(item_id, image_type, max_width, max_height, tag, format, percent_played, unplayed_count, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Gets the item's image.
def get_item_image_by_index(self,
item_id,
image_type,
image_index,
max_width=None,
max_height=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
tag=None,
crop_whitespace=None,
format=None,
add_played_indicator=None,
percent_played=None,
unplayed_count=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
format |
ImageFormatEnum |
Query, Optional | Optional. The MediaBrowser.Model.Drawing.ImageFormat of the returned image. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_item_image_by_index(item_id, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get item image infos.
def get_item_image_infos(self,
item_id)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
item_id = '0000130e-0000-0000-0000-000000000000'
result = image_controller.get_item_image_infos(item_id)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Get music genre image by name.
def get_music_genre_image(self,
name,
image_type,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Music genre name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
image_index |
int |
Query, Optional | Image index. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
result = image_controller.get_music_genre_image(name, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get music genre image by name.
def get_music_genre_image_by_index(self,
name,
image_type,
image_index,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Music genre name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_music_genre_image_by_index(name, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get person image by name.
def get_person_image(self,
name,
image_type,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Person name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
image_index |
int |
Query, Optional | Image index. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
result = image_controller.get_person_image(name, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get person image by name.
def get_person_image_by_index(self,
name,
image_type,
image_index,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Person name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_person_image_by_index(name, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Generates or gets the splashscreen.
def get_splashscreen(self,
tag=None,
format=None,
max_width=None,
max_height=None,
width=None,
height=None,
fill_width=None,
fill_height=None,
blur=None,
background_color=None,
foreground_layer=None,
quality=90)
Parameter | Type | Tags | Description |
---|---|---|---|
tag |
string |
Query, Optional | Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
blur |
int |
Query, Optional | Blur image. |
background_color |
string |
Query, Optional | Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Apply a foreground layer on top of the image. |
quality |
int |
Query, Optional | Quality setting, from 0-100. Default: 90 Constraints: >= 0 , <= 100 |
mixed
quality = 90
result = image_controller.get_splashscreen(None, None, None, None, None, None, None, None, None, None, None, quality)
Get studio image by name.
def get_studio_image(self,
name,
image_type,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Studio name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
image_index |
int |
Query, Optional | Image index. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
result = image_controller.get_studio_image(name, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get studio image by name.
def get_studio_image_by_index(self,
name,
image_type,
image_index,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
name |
string |
Template, Required | Studio name. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
name = 'name0'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_studio_image_by_index(name, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get user profile image.
def get_user_image(self,
user_id,
image_type,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None,
image_index=None)
Parameter | Type | Tags | Description |
---|---|---|---|
user_id |
uuid|string |
Template, Required | User id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
image_index |
int |
Query, Optional | Image index. |
mixed
user_id = '000013ec-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
result = image_controller.get_user_image(user_id, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Get user profile image.
def get_user_image_by_index(self,
user_id,
image_type,
image_index,
tag=None,
format=None,
max_width=None,
max_height=None,
percent_played=None,
unplayed_count=None,
width=None,
height=None,
quality=None,
fill_width=None,
fill_height=None,
crop_whitespace=None,
add_played_indicator=None,
blur=None,
background_color=None,
foreground_layer=None)
Parameter | Type | Tags | Description |
---|---|---|---|
user_id |
uuid|string |
Template, Required | User id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Image index. |
tag |
string |
Query, Optional | Optional. Supply the cache tag from the item object to receive strong caching headers. |
format |
ImageFormatEnum |
Query, Optional | Determines the output format of the image - original,gif,jpg,png. |
max_width |
int |
Query, Optional | The maximum image width to return. |
max_height |
int |
Query, Optional | The maximum image height to return. |
percent_played |
float |
Query, Optional | Optional. Percent to render for the percent played overlay. |
unplayed_count |
int |
Query, Optional | Optional. Unplayed count overlay to render. |
width |
int |
Query, Optional | The fixed image width to return. |
height |
int |
Query, Optional | The fixed image height to return. |
quality |
int |
Query, Optional | Optional. Quality setting, from 0-100. Defaults to 90 and should suffice in most cases. |
fill_width |
int |
Query, Optional | Width of box to fill. |
fill_height |
int |
Query, Optional | Height of box to fill. |
crop_whitespace |
bool |
Query, Optional | Optional. Specify if whitespace should be cropped out of the image. True/False. If unspecified, whitespace will be cropped from logos and clear art. |
add_played_indicator |
bool |
Query, Optional | Optional. Add a played indicator. |
blur |
int |
Query, Optional | Optional. Blur image. |
background_color |
string |
Query, Optional | Optional. Apply a background color for transparent images. |
foreground_layer |
string |
Query, Optional | Optional. Apply a foreground layer on top of the image. |
mixed
user_id = '000013ec-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.get_user_image_by_index(user_id, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
404 | Item not found. | ProblemDetailsException |
Sets the user image.
def post_user_image(self,
user_id,
image_type,
index=None,
body=None)
Parameter | Type | Tags | Description |
---|---|---|---|
user_id |
uuid|string |
Template, Required | User Id. |
image_type |
ImageTypeEnum |
Template, Required | (Unused) Image type. |
index |
int |
Query, Optional | (Unused) Image index. |
body |
object |
Body, Optional | - |
void
user_id = '000013ec-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
result = image_controller.post_user_image(user_id, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | User does not have permission to delete the image. | ProblemDetailsException |
Sets the user image.
def post_user_image_by_index(self,
user_id,
image_type,
index,
body=None)
Parameter | Type | Tags | Description |
---|---|---|---|
user_id |
uuid|string |
Template, Required | User Id. |
image_type |
ImageTypeEnum |
Template, Required | (Unused) Image type. |
index |
int |
Template, Required | (Unused) Image index. |
body |
object |
Body, Optional | - |
void
user_id = '000013ec-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
index = 44
result = image_controller.post_user_image_by_index(user_id, image_type, index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | User does not have permission to delete the image. | ProblemDetailsException |
Set item image.
def set_item_image(self,
item_id,
image_type,
body=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
body |
object |
Body, Optional | - |
void
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
result = image_controller.set_item_image(item_id, image_type)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Set item image.
def set_item_image_by_index(self,
item_id,
image_type,
image_index,
body=None)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | (Unused) Image index. |
body |
object |
Body, Optional | - |
void
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
image_index = 102
result = image_controller.set_item_image_by_index(item_id, image_type, image_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Updates the index for an item image.
def update_item_image_index(self,
item_id,
image_type,
image_index,
new_index)
Parameter | Type | Tags | Description |
---|---|---|---|
item_id |
uuid|string |
Template, Required | Item id. |
image_type |
ImageTypeEnum |
Template, Required | Image type. |
image_index |
int |
Template, Required | Old image index. |
new_index |
int |
Query, Required | New image index. |
void
item_id = '0000130e-0000-0000-0000-000000000000'
image_type = ImageTypeEnum.BOX
image_index = 102
new_index = 60
result = image_controller.update_item_image_index(item_id, image_type, image_index, new_index)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Item not found. | ProblemDetailsException |
Uploads a custom splashscreen. The body is expected to the image contents base64 encoded.
def upload_custom_splashscreen(self,
body=None)
Parameter | Type | Tags | Description |
---|---|---|---|
body |
object |
Body, Optional | - |
void
result = image_controller.upload_custom_splashscreen()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
400 | Error reading MimeType from uploaded image. | ProblemDetailsException |
401 | Unauthorized | APIException |
403 | User does not have permission to upload splashscreen.. | ProblemDetailsException |