thesportsdb-client

ImageSize : string
in package

Image sizes TheSportsDB serves by appending a path suffix.

Table of Contents

Cases

Medium  = '/medium'
About 70% of the original's bytes.
Small  = '/small'
About 35%; good for cards.
Tiny  = '/tiny'
About 10%; good for lists.

Methods

of()  : string|null
The same image at this size. Only r2.thesportsdb.com and www.thesportsdb.com/images/media/ images support the suffixes (others return 404, verified 5 Oct 2026); other URLs and null are returned unchanged.

Cases

Methods

of()

The same image at this size. Only r2.thesportsdb.com and www.thesportsdb.com/images/media/ images support the suffixes (others return 404, verified 5 Oct 2026); other URLs and null are returned unchanged.

public of(string|null $url) : string|null
Parameters
$url : string|null
Return values
string|null
On this page

Search results