Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncImage not found #30

Closed
bthibault opened this issue May 2, 2014 · 1 comment
Closed

AsyncImage not found #30

bthibault opened this issue May 2, 2014 · 1 comment

Comments

@bthibault
Copy link

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?

@bthibault
Copy link
Author

Closing issue,

I got it working. I was being a noob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant