Skip to main content
Version: 3.36.0

Profile

Enumerator options for imageOptimizerOptions.profile.

Constants

  • Baseline ("baseline") The profile recommended for video conferencing and mobile applications. (Default)
  • Main ("main") The profile recommended for standard-definition broadcasts.
  • High ("high") The profile recommended for high-definition broadcasts.

Examples

import { Profile, Region } from 'fastly:image-optimizer';

addEventListener("fetch", (event) => event.respondWith(handleRequest(event)));

async function handleRequest(event) {
return await fetch('https://www.w3.org/Graphics/PNG/text2.png', {
imageOptimizerOptions: {
region: Region.UsEast,
profile: Profile.Main
},
backend: 'w3'
});
}