fill — fill image with color or pattern

    Fill current image with given color or another image used as tile for filling. Pass optional x, y coordinates to start at a certain point.

    The fill color or image pattern. Pass a color as one of the different color formats or to fill the image with tiles an image resource in the following formats:

    • string - Path of the image in filesystem.
    • string - URL of an image ( must be enabled).
    • string - Binary image data.
    • string - Base64 encoded image data.
    • resource - PHP resource of type gd. (when using GD driver)
    • object - Imagick instance (when using Imagick driver)
    • object - Intervention\Image\Image instance
    • object - SplFileInfo instance (To handle Laravel file uploads via Symfony\Component\HttpFoundation\File\UploadedFile)

    Starting point on y-axis for the filling.

    Instance of Intervention\Image\Image