Interface APIContentThumbnail

The Thumbnail object returned from the API\

Example

APIContentThumbnail.url = `https://imageproxy.ifunny.co/${params}/images/${content_id}.jpg`
APIContentThumbnail.webp_url = `https://imageproxy.ifunny.co/${params}/images/${content_id}.webp

Content URL params:
crop:x-{number} crops number pixels from bottom of the image
crop:x+{number} leaves number pixels at the top, and crops the rest
crop:square makes the image a square aspect ratio
resize:{number} changes the size of the image
quality:{number} changes the image quality

? Bottom iFunny watermarks are 20 pixels tall
? crop:x-20 crops the watermark from an image

Hierarchy

  • APIContentThumbnail

Properties

large_url: string

crop:x-20,crop:square,resize:320x,quality:90x75
jpg

large_webp_url: string

crop:x-20,crop:square,resize:320x,quality:90

proportional_size: Size

The proportional size of the image

proportional_url: string

crop:x-20,resize:320x,crop:x800,quality:90x75

proportional_webp_url: string

crop:x-20,resize:320x,crop:x800,quality:90

small_url?: string

crop:x-20,crop:square,resize:65x,quality:90x75
jpg

url: string

crop:x-20,crop:square,resize:160x,quality:90x75
jpg

webp_url: string

crop:x-20,resize:640x,quality:90x75

x640_url: string

crop:x-20,resize:640x,quality:90x75
jpg

x640_webp_url: string

crop:x-20,resize:640x,quality:90

Generated using TypeDoc