[LON-CAPA-users] uploading SVG
Stuart Raeburn
raeburn at msu.edu
Tue Jul 29 10:51:40 EDT 2014
Hi,
Use of SVG image files requires modification to the mime.types file on
your web server (and web server reload).
The mime.types file shipped with LON-CAPA releases has not, up until
now, included the required line:
image/svg+xml svg svgz
because of LON-CAPA policy to support older browsers (i.e., Internet
Explorer 8 and older). Note: use of SVG with IE8 requires an SVG
viewer on the client side.
Anyway, I have committed an updated mime.types file to the LON-CAPA
CVS repository, and will include that in the forthcoming 2.11.1
http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/mime.types?rev=1.7;content-type=text%2Fplain
To use LON-CAPA's mime.types config file, your domain's Apache
server's configuration needs to include:
TypesConfig conf/mime.types
Currently, printout generation (i.e., use of LON-CAPA's Print function
to generate a PDF from TeX) will fail if you include an svg file in an
img tag in a LON-CAPA resource. See:
http://bugs.loncapa.org/show_bug.cgi?id=6728
Stuart Raeburn
LON-CAPA Academic Consortium
Quoting Peter Dencker <dencker at math.uni-luebeck.de>:
>
> Hi.
>
> It is possible to use an image reference to a svg, e.g.,
> <img
> src="http://upload.wikimedia.org/wikipedia/commons/b/b0/Letters_SVG.svg" />
> in a LON-CAPA problem.
>
> But it doesn't work to upload the corresponding file into the
> construction space and to use it. It is not even possible to open the
> uploaded picture in the browser; a xml scource code is shown.
>
> Other pictures (e.g. png) work.
>
> Is this a common problem or have I done something wrong?
>
> - Peter
>
>
> --
> Dr. Peter Dencker
> wissenschaftl. Mitarbeiter
>
> UNIVERSITÄT ZU LÜBECK
> INSTITUT FÜR MATHEMATIK
>
> Ratzeburger Allee 160
> 23562 Lübeck
>
> Tel +49 451 500 4254
> Fax +49 451 500 3373
> dencker at math.uni-luebeck.de
>
> www.math.uni-luebeck.de
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
More information about the LON-CAPA-users
mailing list