Made SVG images accessible by HTML5 client.

This commit is contained in:
Maxim Khlobystov 2015-07-06 14:26:13 -04:00
parent 16314d5edd
commit cf1c6390be
3 changed files with 4 additions and 4 deletions

View File

@ -241,7 +241,7 @@ class BigBlueButtonInGW(bbbGW: BigBlueButtonGateway, presUtil: PreuploadedPresen
val swfUri = presBaseUrl + "/slide/" + i
val txtUri = presBaseUrl + "/textfiles/" + i
val pngUri = presBaseUrl + "/png/" + i
val pngUri = presBaseUrl + "/svg/" + i
val p = new Page(id=id, num=num, thumbUri=thumbnail, swfUri=swfUri,
txtUri=txtUri, pngUri=pngUri,

View File

@ -95,7 +95,7 @@ class PresentationService {
}
def showPngImage(String conf, String room, String presentationName, String id) {
new File(roomDirectory(conf, room).absolutePath + File.separatorChar + presentationName + File.separatorChar + "pngs" + File.separatorChar + "slide${id}.png")
new File(roomDirectory(conf, room).absolutePath + File.separatorChar + presentationName + File.separatorChar + "pngs" + File.separatorChar + "slide${id}.svg")
}
def showPresentation = {conf, room, filename ->
@ -168,6 +168,6 @@ import java.io.FilenameFilter;
import java.io.File;
class PngFilter implements FilenameFilter {
public boolean accept(File dir, String name) {
return (name.endsWith(".png"));
return (name.endsWith(".svg"));
}
}

View File

@ -41,7 +41,7 @@ public class PdfPageToImageConversionService {
log.debug("Creating temporary pdf " + tempPdfFile.getAbsolutePath());
if (extractor.extractPage(presentationFile, tempPdfFile, page)) {
File tempPngFile = new File(tempDir.getAbsolutePath() + "/temp-" + page + ".png");
File tempPngFile = new File(tempDir.getAbsolutePath() + "/temp-" + page + ".svg");
log.debug("Creating PNG " + tempPngFile.getAbsolutePath());
if (pdfToImageConverter.convert(tempPdfFile, tempPngFile, 1)) {