object ImageUtil
- Alphabetic
- By Inheritance
- ImageUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class ConvertImage(name: Option[String], baseName: String, format: String, formatDescription: String, mimeType: Option[String], geometry: ConvertImageGeometry, colorspace: Option[String], depth: Int, baseDepth: Int, pixels: Long) extends Product with Serializable
- case class ConvertImageGeometry(width: Int, height: Int, x: Int, y: Int) extends Product with Serializable
- case class ConvertResult(image: ConvertImage) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addWatermark(input: File, output: File, overlayPath: String, gravity: String = "center"): Unit
- def applyCMYKConversion(op: IMOperation): IMOps
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
destinationType(gaussianBlur: Double, quality: Double): ImageType
Given a gaussian blur and image quality parameter, determines if a JPEG or PNG output is needed.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
generateCropped(input: File, output: File, outputType: ImageType, width: Int, height: Int, strip: Boolean = true, gaussianBlur: Double = 0.0d, quality: Double = 0.0d, flatten: Boolean = true, isCMYK: Boolean = false): Unit
Generates an image completely filling the provided dimensions.
Generates an image completely filling the provided dimensions.
A Vector image is not re-sized this way, but this method could be called to produce a rasterized version of a vector graphic for use as a library search results image.
- def generateGIFCropped(input: File, output: File, width: Int, height: Int): Unit
-
def
generateResized(input: File, output: File, width: Option[Int] = None, height: Option[Int] = None, strip: Boolean = true, gaussianBlur: Double = 0.0, quality: Double = 0.0, isCMYK: Boolean = false): Unit
Resizes the supplied file with adaptive resizing based on the supplied width and/or height values.
Resizes the supplied file with adaptive resizing based on the supplied width and/or height values.
- input
the original file to resize
- output
generated image
- width
the width value option
- height
the height value option
-
def
generateThumbnail(input: File, output: File, width: Int, height: Int, isCMYK: Boolean = false): Unit
Generates a thumbnail of the specified image file at the supplied width and height.
Generates a thumbnail of the specified image file at the supplied width and height. The aspect ratio will be maintained and the outer extents will be transparent in the generated PNG.
- input
Original image to generate a thumbnail from
- output
Generated image
- width
Thumbnail width
- height
Thumbnail height
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- var iccProfiles: String
- def info(file: File): ImageInfo
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def pngToJpg(input: File, output: File): Unit
-
def
saveBase64(base64: String, file: File): Unit
Takes a base64 encoded String and outputs it to the file specified as a proper binary representation.
Takes a base64 encoded String and outputs it to the file specified as a proper binary representation.
- base64
the base64 encoded image
- file
the binary file to output to
- def scaleUp(imageInfo: ImageInfo, minWidth: Int, minHeight: Int): ImageInfo
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.