@Nullable
    private static Bitmap readSVGImageFromStream(@NonNull final InputStream is, @Nullable final Object logId) {
        //For documentation of SVG lib see https://bigbadaboom.github.io/androidsvg/
        try {
            final SVG svg = SVG.getFromInputStream(is);

            // Create a canvas to draw onto
            final int width = svg.getDocumentWidth() == -1 ? 200 : (int) Math.ceil(svg.getDocumentWidth());
            final int height = svg.getDocumentHeight() == -1 ? 200 : (int) Math.ceil(svg.getDocumentHeight());
            final Bitmap image = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
            final Canvas bmcanvas = new Canvas(image);

            // Clear background to white
            bmcanvas.drawRGB(255, 255, 255);

            // Render our document onto our canvas
            svg.renderToCanvas(bmcanvas);
            return image;
        } catch (Exception es) {
            Log.w("Problem parsing '" + logId + "' as SVG", es);
        }
        return null;
    }
Reads an Inputstream as SVG image. Stream is NOT CLOSED! If an error happens on read, null is returned
main/src/main/java/cgeo/geocaching/utils/ImageUtils.java