Opened 6 years ago

Closed 6 years ago

#1128 closed task (fixed)

Add support for svg images

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Thumbnails v1.1
Component: net.sf.basedb.thumbnails Keywords:
Cc:

Description

The extension will create thumbnail links for svg images since it does that for all MIME types starting with image/. It doesn't work however since there is no built-in support for it in Java. I am sure we can find some third-party library for this, however there is not really any reason for scaling svg images. It would be better to just serve the original svg file and set a specific size.

Change History (1)

comment:1 by Nicklas Nordborg, 6 years ago

Resolution: fixed
Status: newclosed

In 5351:

Fixes #1128: Add support for svg images

This requried some refactoring of the ImageLoader interface since the svg case never loads as an BufferedImage. The responsibility for down-scaling and converting to a final image has now been moved to the ImageLoader implementations which allows the SvgImageLoader to just pass the source data through as it is.

Note: See TracTickets for help on using tickets.