• import { imageVersion } from '@src/hylo-components/utils/hylo/hylo';

    Returns a modified image path representing the "version" of the image.

    "options" defines the setting of the image version tool (optional):

    • options.cut: removes the first appearance of "options.cut" from "path" (default: "/media/")
    • options.path: the image version script path including the image_path query (default: "/image-version/?image_path=")
    • options.version: the version query (default: "&version=")

    Parameters

    • path: string

      the original path

    • version: string

      the version of the image

    • options: {
          cut?: string;
          path?: string;
          version?: string;
      } = {}

      additional setup options

      • Optional cut?: string
      • Optional path?: string
      • Optional version?: string

    Returns string

Generated using TypeDoc