fcatools / conexp-ng

ConExp-NG is a simple GUI-centric tool for the study & research of Formal Concept Analysis (FCA) that allows you to create formal contexts, draw concept lattices and explore dependencies between attributes.
https://github.com/fcatools/conexp-ng/wiki
GNU General Public License v3.0
29 stars 8 forks source link

JPG export not working #152

Closed blu2lz closed 10 years ago

blu2lz commented 10 years ago

It seems to be something wrong with the used library. I'll look into it and maybe change it.

blu2lz commented 10 years ago

It is a bigger problem. The Apache Batik library is used to transcode SVG to PNG and JPG. The last version is 1.7. In Java 7 the (already labelled deprecated for a very long time) com.sun.* packages are removed, in which the JPEGCodec is located. In Batik 1.7 it still uses this class resulting in a ClassNotFoundException in Java 7. The development version 1.8 of Batik already fixed this error by using ImageIO, which is recommended for exporting pixel graphics. Currently a SVG file is created every time and transcoded to the needed file type. Since this does not make any sense because you could just export it even easier directly through ImageIO, I will change it to ImageIO and only leave the SVG and PDF (FOP is used) creation.