insert — Paste over another image

    Paste a given image source over the current image with an optional position x, y and an optional anchor position. This method can be used to apply another image as watermark because the transparency values are maintained.

    • string - Path of the image in filesystem.
    • string - Binary image data.
    • resource - PHP resource of type .
    • object - Instance of Intervention\Image\Image

    Optional position of the new image on x-axis of the current image. Default: 0

    Set a position where image will be inserted. For example if you are setting the anchor to bottom-left the image will be positioned at the bottom-left border of the current image. The position of the new image will be calculated relatively to this location.

    • top-left (default)
    • top
    • left
    • center
    • right
    • bottom-left
    • bottom
    • bottom-right

    Instance of Intervention\Image\Image