![]() Must be called before any output is sent to the screen. $filename* (string) - The filename (without path) to send to the client (e.g.toDownload($filename, $mimeType, $options)įorces the image to be downloaded to the clients machine. $options (array|int) - Array of options or Image quality as a percentage (default 100).$mimeType (string) - The image format to output as a mime type (defaults to the original mime type).$string = file_get_contents('image.jpg') $string* (string) - The raw image data as a string.$color (string|array) - Optional fill color for the new image (default 'transparent').$height* (int) - The height of the image.$width* (int) - The width of the image.$file* (string) - The image file to load.You can pipe transparency to normalizeColor when you pass a CSS color or hex string: white|0.25.Static methods can be called with $image::methodName() or \claviska\SimpleImage::methodName().You can pass a file or data URI to the constructor to avoid calling fromFile or fromDataUri.Methods that return a SimpleImage object are chainable.An asterisk denotes a required argument.If you enjoy using SimpleImage, especially in commercial applications, please consider sponsoring me to support its development. SimpleImage is developed and maintained by Cory LaViska.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |