Skip to content

feeds-resizer 0.0.0-canary-20240301000913

Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/feeds-resizer@0.0.0-canary-20240301000913
Install via package.json:
"@wpmedia/feeds-resizer": "0.0.0-canary-20240301000913"

About this version

Resizer

Many of the outbound feeds need to generate resizer URLs. This package provides a function (buildResizerURL) to generate those URLs.

buildResizerURL(_url, resizerKey, resizerURL, width, height, ansImage)

  • _url: Usually an image URL from the content API
  • resizerKey: Resizer key for a client environment, stored in a fustion environment variable in the feature bundle
  • resizerURL: Base URL
  • width: Optional integer value to resize the image width
  • height: Optional integer value to resize the image height
  • ansImage: Optional ANS image item containing the resizer image hash

images need to use the resizer regardless of if the image size is going to change. If the width and height and omited the image will maintain it's original size, but still get passed to the resizer.

Details


Assets

  • feeds-resizer-0.0.0-canary-20240301000913.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0