Could not instantiate SVGImageReader Exception in Scrimage

Table of contents
Reading Time: < 1 minute

Scrimage is a powerful image processing scala library . Basically Scrimage’s functionality based on java.awt.* along with others third party library like “metadata-extractor” , “xmlgraphics” etc .

The use case of this library is optimizing the image without loosing the original  image quality . We can apply processing like  resize, rotate, filter, crop, convert between formats on image .

To know more about Scrimage , you can visit on https://github.com/sksamuel/scrimage .

That was about Scrimage but what actually we face during the processing of image “Could not instantiate SVGImageReader” error message on terminal .It does not affect processing of image  but no one would like gaint error message on console like :

scrimageError

Found  root cause :

rootcause

Deep into looking , i found Apache Batik – Common runtime exceptions list . On searching in this list i came across “Fixed by adding batik-codec.jar to class path” .

A qucik glance in maven repository and update build file by adding

Then the console error disappear . ohh Great !

Hope , this would help someone else who are facing same issues 🙂

Discover more from Knoldus Blogs

Subscribe now to keep reading and get access to the full archive.

Continue reading