mask — Apply an alpha mask to an image
- string - Path of the image in filesystem.
- string - URL of an image ( must be enabled).
- string - Binary image data.
- string - Data-URL 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)