This module provides image-related utilities.
To include this module in your Lift project, update your libraryDependencies
in build.sbt
to include:
Lift 3.0.x for Scala 2.11:
"net.liftmodules" %% "imaging_3.0" % "1.4-SNAPSHOT"
Lift 2.6.x for Scala 2.10 and 2.11:
"net.liftmodules" %% "imaging_2.6" % "1.4-SNAPSHOT"
Lift 2.6.x for Scala 2.9 and 2.10:
"net.liftmodules" %% "imaging_2.6" % "1.3"
Lift 2.5.x for Scala 2.9 and 2.10:
"net.liftmodules" %% "imaging_2.5" % "1.2"
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.
Version list can be found at Maven Repository
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.
- The Jenkins build is triggered on a push to master.