scala - Get image format from Scrimage Image instance -


i'm working scrimage right now, , need image format file, right now, if gif uploaded, not become animated jpeg. need able tell if image file gif know not use format.jpeg writer. there way this?

in release 2.0.0-m2 can

val format : option[format] = formatdetector.detect(in) 

where in input stream.


Comments