|:------------------------------------------------------:|
| ⚡︎ B o x L a n g ⚡︎
| Dynamic : Modular : Productive
|:------------------------------------------------------:|
Copyright Since 2023 by Ortus Solutions, Corp
www.boxlang.io | www.ortussolutions.com
This module provides image manipulation functionality. This module is part of the BoxLang project.
This module contributes the following BIFs:
- GetReadableImageFormats
- GetWriteableImageFormats
- ImageAddBorder
- ImageBlur
- ImageClearRect
- ImageCopy
- ImageCrop
- ImageDrawArc
- ImageDrawBeveledRect
- ImageDrawCubicCurve
- ImageDrawLine
- ImageDrawLines
- ImageDrawOval
- ImageDrawPoint
- ImageDrawQuadraticCurve
- ImageDrawRect
- ImageDrawRoundRect
- ImageDrawText
- ImageFlip
- ImageGetBlob
- ImageGetBufferedImage
- ImageGetExifMetaData
- ImageGetExifTag
- ImageGetHeight
- ImageGetIPTCMetadata
- ImageGetIPTCTag
- ImageGetWidth
- ImageGrayScale - also aliased as
ImageGreyScale()
for you brits - ImageInfo
- ImageNegative
- ImageNew
- ImageOverlay
- ImagePaste - aliased as
imagePaste()
- ImageRead
- ImageReadBase64
- ImageResize
- ImageRotate
- ImageRotateDrawingAxis
- ImageScaleToFit
- ImageSetAntiAliasing
- ImageSetBackgroundColor
- ImageSetDrawingColor
- ImageSetDrawingStroke
- ImageSetDrawingTransparency
- ImageSharpen
- ImageShear
- ImageShearDrawingAxis
- ImageTranslate
- ImageTranslateDrawingAxis
- ImageWrite
- ImageWriteBase64
- IsImage
- IsImageFile
Most of these BIFs are also implemented as member functions on the BoxImage
type, so imageGrayScale( myImage )
can also be written as myImage.grayScale()
.
This module contains no BoxLang Components.
Blur, crop, and grayscale a png image before saving it back to disk:
var updatedLogo = ImageRead( "src/test/resources/logo.png" )
.blur( 5 )
.crop( x = 50, y = 50, width = 150, height = 100 )
.grayScale();
imageWrite( updatedLogo, "src/test/resources/logoNew.png" );
BoxLang is a professional open-source project and it is completely funded by the community and Ortus Solutions, Corp. Ortus Patreons get many benefits like a cfcasts account, a FORGEBOX Pro account and so much more. If you are interested in becoming a sponsor, please visit our patronage page: https://patreon.com/ortussolutions
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12