You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just getting starting tinkering with this and SBT, so maybe I'm doing something wrong, but i'm trying the AsyncImage directory example you gave and got this output:
.scala:6: not found: value AsyncImage
[error] dir.listFiles().foreach(file => AsyncImage(file).filter(GrayscaleFilter).onSuccess {
my test.scala file:
import com.sksamuel.scrimage._
object Test {
def main(args: Array[String]) = {
val dir = new java.io.File("/Downloads/ff_images")
dir.listFiles().foreach(file => AsyncImage(file).filter(GrayscaleFilter).onSuccess {
case image => image.writer(Format.PNG).withMaxCompression.write(file)
})
}
}
Hi,
I'm just getting starting tinkering with this and SBT, so maybe I'm doing something wrong, but i'm trying the AsyncImage directory example you gave and got this output:
.scala:6: not found: value AsyncImage
[error] dir.listFiles().foreach(file => AsyncImage(file).filter(GrayscaleFilter).onSuccess {
my test.scala file:
import com.sksamuel.scrimage._
object Test {
def main(args: Array[String]) = {
val dir = new java.io.File("/Downloads/ff_images")
dir.listFiles().foreach(file => AsyncImage(file).filter(GrayscaleFilter).onSuccess {
case image => image.writer(Format.PNG).withMaxCompression.write(file)
})
}
}
and my build.sbt
name := "img_srv"
version := "0.1"
scalaVersion := "2.11.0"
libraryDependencies += "com.sksamuel.scrimage" %% "scrimage-core" % "1.3.20"
libraryDependencies += "com.sksamuel.scrimage" %% "scrimage-filters" % "1.3.20"
Am I being a noob, or is there a problem here?
The text was updated successfully, but these errors were encountered: