Made SVG images accessible by HTML5 client.
This commit is contained in:
parent
16314d5edd
commit
cf1c6390be
@ -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,
|
||||
|
4
bigbluebutton-web/grails-app/services/org/bigbluebutton/web/services/PresentationService.groovy
Normal file → Executable file
4
bigbluebutton-web/grails-app/services/org/bigbluebutton/web/services/PresentationService.groovy
Normal file → Executable 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"));
|
||||
}
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user