Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
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.
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.
Maybe JMagick? Take a look here, it's a native interface between ImageMagick and Java exactly like RMagick..
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I can make a chart with any chart drawing tool, like 'LibreOffice Draw'. But I want to save the effort of drawing arrow-lines, blocks. Just give it the inputs, outputs and process name, then it will generate a chart for me.
I use graphviz for this. You textually specify the graph you want and it provides a variety of command line tools for drawing it. It doesn't always draw things perfectly, but it usually does a good enough job. There are also probably LaTeX packages out there, if you're into that, although its probably overkill for your needs if you don't use it already.
Graphviz will do this. You define a graph using fairly simple text format and it will layout and draw the output.
Graphviz documentation
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there any good Scala or Java library for image manipulation? For simple tasks like composing an image with some others then generating a thumb?
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.
You asked how to generate a thumbnail, you would do something like.
val in = ...// some input stream
val out = ... // some output stream
Image(in).scale(300,400).write(out, Png)
You can change the scaling method (Bicubic by default) and the output format.
they're all a bit old school, and maybe inconvenient, but java.awt, java.awt.image, and javax.imageio has everything you need to blend and rescale images. You can find some blending example code e.g. here
http://www.curious-creature.org/2006/09/20/new-blendings-modes-for-java2d/
you can find some examples of rescaling and generating image bytes e.g. here
https://sourceforge.net/projects/ssim/?source=directory
there are probably newer/easier solutions, but these do work.
It's not Scala-specific, but ImgLib2 is a full-powered Java image processing library. It's geared towards scientific/low level use, so it might not be as easy as you want for what you're looking for, but it can almost certainly manage anything you're likely to want.
There are also a lot of nice image filters in this Open Source library:
http://www.jhlabs.com/ip/filters/
Since the question is tag with java-2d you know you can use any Java library. A quick google revealed this SO answer:
open source image processing lib in java
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Are there are any examples, tutorials or docs for serialization / pickling / marshalling objects in Scala? I know of existence of scala.util.Marshal and scala.reflect.internal.pickling, but what is a difference between them? how can I use it? Is that some experimetal feature or can I use it in production ... ?
You should use either java serialization (I recommend using the Externalizable approach for complex cases). You can find lots of tutorials by googling "java serialization tutorial".
If you want to stay in Scala, you should have a look to SBinary which uses composable type classes. The project seems old and unmaintained but works like a charm with Scala 2.9.2. There's a tutorial link in the README and I'm currently writing another one.
Not sure about the requirements you have, but it's worth looking at Google's Protocol Buffers and Apache Thrift. Both provide efficient mechanism for serialization.
There is a Protocol Buffers scala compiler ScalaBuff
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
are there any image effects (e.g. lomo, watercolor, sketch ...etc) libries can be used on mobile device and suitable for mobile device?
There are libraries like JJIL, simple-iphone-image-processing, JH labs, imageMagick porting to iphone and opencv have been mentioned in various previous posts.
I want libraries that I don't need to care about the algorithm of effect, but lots of libraries mentioned above are this type of libraries.
What I need are libraries that already have done effects functions and I just call the functions to apply effects on photos (It is ok to set parameters and attributes by myself when I use it).
Are there any more suggestions?
Free is good, commercial would be fine.
Thank you.
You could try the effects API from Aviary. Here: http://developers.aviary.com/
I never used it though, so I can't say if that's exactly what you are looking for.
Potentially worth your while:
OpenCV
Simple iPhone Image Processing
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can anyone point me to some good Open Source web interface for VCS (version control system) written in Perl?
Something well written, so I can examine the code and steal the best parts (or organization) for gitweb. Preferably something without tons of external dependences not available in (extended) Perl core.
I haven't looked at the source code of SVN::Web, so I can't tell you if it's well written, but I sure like to use it. Here is a list of the dependencies, and you can see it in action.
Have you has a look at CvsMonitor? Its a little old but its a perl web interface into CVS.