Methods
(static) process(opt) → {Object}
Process the image and output in memory/filesystem
`blob` is required to process the image, or an error is thrown
## Resizing options
If `size` is passed, the image will be thumbnailized in a square.
If `width` is passed the image will be resized with the specified width maintaining the ratio.
If `height` is passed the image will be resized with the specified height maintaining the ratio.
If `width` and `height` are both passed, the image will be resized as a *cover* method.
If `retina` is passed, that factor is multiplied.
## Output options
`filename`: output the blob in the filesystem and release memory blob
`file`: set the Ti.File output (opt.)
Parameters:
Name | Type | Description |
---|---|---|
opt |
Object | The options, see the description above. |
Returns:
{Ti.Blob/Ti.File}
- Type
- Object