Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working with images in Scala [closed]

I am generating large PNG files from a Scala program. Currently, I am doing it the same way I would do it in java. I am creating a new BufferedImage and setting each pixel to the correct color. This works fine, but I am wondering if there are any good libraries for working with images in Scala? I am looking for something like Ruby's RMagick library.

like image 509
dbyrne Avatar asked May 26 '10 19:05

dbyrne


2 Answers

Take a look at https://github.com/sksamuel/scrimage (Disclaimer: I am the author)

This is an open source Scala image library that essentially wraps java.awt Image operations in a nicer API as well as providing easy methods for operations like fitting to a given size, etc.

like image 167
sksamuel Avatar answered Sep 21 '22 11:09

sksamuel


Maybe JMagick? Take a look here, it's a native interface between ImageMagick and Java exactly like RMagick..

like image 41
Jack Avatar answered Sep 21 '22 11:09

Jack