This module provides image-related utilities.
To include this module in your Lift project, add the following to build.sbt
:
libraryDependencies += "net.liftmodules" %% "imaging_3.2" % "1.6.0"
Lift Version | Scala Version | Module Version |
---|---|---|
3.2.x | 2.12, 2.11 | 1.6.0 |
3.1.x | 2.12, 2.11 | 1.5.0 |
3.0.x | 2.12, 2.11 | 1.4.0 |
2.6.x | 2.10, 2.9 | 1.3 |
2.5.x | 2.10, 2.9 | 1.2 |
Lift Version | Scala Version | Module Version |
---|---|---|
3.0.x | 2.11 | 1.4-SNAPSHOT |
2.6.x | 2.11, 2.10 | 1.4-SNAPSHOT |
Note: The module package changed from net.liftweb.imaging
to net.liftmodules.imaging
in May 2012. Please consider this when referencing documentation written before that date.
var metaImage = ImageResizer.getImageFromStream(fph.fileStream)
var metaImage = ImageResizer.removeAlphaChannel(metaImage)
val img = ImageResizer.max(metaImage.orientation, metaImage.image, 800, 600)
OpenJDK does not have a native JPEG encoder, try using Sun's JDK, or using an external library like JAI.
Merge to master will trigger a Travis build and publish a SNAPSHOT (if the version is a -SNAPSHOT).