Skip to content

v0.6.0

Choose a tag to compare

@ogorzalka ogorzalka released this 19 Oct 14:16
· 146 commits to main since this release
c7cda68

Sizes made by a service.

  • bunny and imgproxy drivers for the sizes (POLLORA_MEDIA_THUMBNAILS_DRIVER): the URL of a size is a Bunny image class (photo.jpg?class=card) or a signed imgproxy URL that names a preset (imgproxy 4.0.x, presets-only; source: the library URL or an s3:// object). No file is made and no fallback route is registered; a private media never goes to the service.
  • wp pollora media thumbs export --driver=bunny|imgproxy: one class or preset per declared size and per extra width. Bunny: merged by name and written with --execute (dry run otherwise); imgproxy: prints the configuration, without the key or the salt.
  • Checked on a real Bunny pull zone and a real imgproxy 4.0.17 (URL and S3 sources): the dimensions advertised for each size are the ones served. Bunny accepts only letters and digits in a class name (hero-640w is the class hero640w; colliding sizes are refused) and replaces the whole list of classes it is sent, so the export merges first.
  • The ThumbnailDriver port gains sizeOf() and refusal(); the srcset of the extra widths is built through the driver.

See the CHANGELOG.