Image module.
- Source:
Methods
-
<static> png2ico(src, dest)
-
Parameters:
Name Type Description srcstring PNG source file.
deststring ICO source file.
- Source:
-
<static> resizeImage(src, size, dest, callback)
-
Resize a image
Parameters:
Name Type Description srcstring Source image file path.
sizeobject Resize image size.
Properties
Name Type Description widthnumber Resize image width.
heightnumber Resize image height.
deststring Destination image file path.
callbackfunction Callback when done.
-
<static> text2image(text, filename, options, callback)
-
Create a image from text.
Parameters:
Name Type Description textstring Source text.
filenamestring Image file name.
optionsobject Optional settings.
Properties
Name Type Argument Description widthnumber Image width.
heightnumber Image height.
colorstring Text color.
backgroundColorstring <optional>
Image background color.
fontFamilystring <optional>
Text font family.
fontFilestring <optional>
Custom font file.
cornerRadiusnumber <optional>
Corner radius size.
callbackfunction Callback when done.
- Source: