Commit graph

7 commits

Author SHA1 Message Date
physikerwelt (Moritz Schubotz) ae930172fd Adjust caching times for svg images
In the first period we set the caching time for server-side
caching to 1 week and the value for client-side caching
to 1 hour.

Change-Id: Ieab63dfe9a00f31d64945180d7b0d98b9fe62b39
2014-10-16 16:22:40 +02:00
GWicke 579591f932 Revert "Bug 70119: Strip style from SVG image"
This is now handled in mathoid by https://gerrit.wikimedia.org/r/165948

This reverts commit 1b41241091.

Change-Id: Ia8bc6eb6daebc4d28135602f483492b878928565
2014-10-10 01:01:13 +00:00
Gabriel Wicke 1b41241091 Bug 70119: Strip style from SVG image
The style would set a margin both on the SVG & the surrounding img. We
transfer the styles to the image, so don't want them on the SVG. This avoids
applying margins twice, which led to clipping.

Change-Id: I89ab3f6727d978d64df6f97f30decf5cb9c0bc92
2014-10-09 12:54:02 -07:00
physikerwelt c3d44210c4 Prevent Special:MathShowImage from showing bad content
This commit prohibits that the special-page MathShowImages
tries to display information that are not enabled via
config.

A typical example is that the Specialpage tries to
render PNG images for IE<9 even though texvc was not
set up. This was reported as

Bug: 69693
Change-Id: Ifc5888152aa02c973eab959e963085f24a7b2a83
2014-08-28 13:58:11 -04:00
physikerwelt 27ce24e736 Improve PNG fallback
The PNG fallback for old IE versions worked
only if the PNG image was already stored in the
database.
This change enables the Specialpage that displays
the PNG images to create new PNG images and to
show them directly.

To test this commit you need an old IE version
(IE<9). If you don't have access you can use
an online service such as http://netrenderer.com.

Change-Id: I74163da94e2d7a2f07d78bfe0f5ce134564ba97f
2014-07-30 19:00:57 +00:00
Amir E. Aharoni 877a0b447b Hide MathShowImage from Special:SpecialPages
This special page is not intented to be used interactively
and its title is not translatable, so it shouldn't be shown
on Special:SpecialPages.

Change-Id: Idc83ecc2924cf417d102d3d1b0fedffd5d393300
2014-06-28 11:59:55 +03:00
physikerwelt (Moritz Schubotz) 8bc23cafb4 SpecialPage for MathImages
Add new special page that displays
math images. (Either SVG- or PNG-Images)

Change-Id: I6065b474b8197232fcb4e79ae17bb08d9bef3ac4
2014-06-06 17:18:30 +02:00