Skip to main content
Previewvendurehq/vendure/feat/4563-refund-destinations

AssetPreviewPipe

Given an Asset object (an object with preview and optionally focalPoint properties), this pipe returns a string with query parameters designed to work with the image resize capabilities of the AssetServerPlugin.

Example

HTML
Signature
  • Implements: PipeTransform

transform

method(asset?: AssetFragment, preset: string | number = 'thumb') => string