@openfoodfacts/openfoodfacts-nodejs
    Preparing search index...

    Function getProductImageUrl

    • Gets URL for a product image based on its barcode and image name

      Parameters

      • barcode: string

        Product barcode

      • imageName: string

        Name of the image (e.g., "front", "ingredients", "nutrition")

      • images: Record<string, SelectedImage | RawImage>

        Image metadata from product data

      • size: "full" | "200" | "100" | "400" = "400"

        Image size (100, 200, 400, or full) - defaults to 400

      Returns string

      Complete URL to the specific image or null if not found