Vector format in presentations?

In a presentation like this:

http://h5p.org/tutorial-course-presentation

http://h5p.org/node/736

.. can the graphical elements only be of the type .jpg .png and .gif or is it possible to use some kind of vector based format?

(So that you can do full screen good looking presentations using only a small file size.)

Could it eventuelly be possible to use Adobe InDesign for design of the "slide content"? (..and could it then be possible to use some vector based format to "deliver" the content over from InDesign and into the presentation.)

(.png should/would work, but vector based format should (if possible) be more compact and "nicer".)

I tried to upload a .svg file to the presentation h5p. This was the error mesage:
"Invalid image file format. Use jpg, png or gif"

Conlusion: Vector format not supported. Right?

fnoks's picture

You are unfortunately correct, at the moment we do not support SVG. We will add that support in the future, but I can't promise you when it will be available.

If you like, you could test it by changing the wp-content/plugins/h5p/h5p-editor-php-library/h5peditor-file.class.php file (line 114): Change this:

$allowed = array(
  'image/png' => 'png',
  'image/jpeg' => 'jpg',
  'image/gif' => 'gif',
);

To this:

$allowed = array(
  'image/png' => 'png',
  'image/jpeg' => 'jpg',
  'image/gif' => 'gif',
  'image/svg+xml' => 'svg'
);

PS: These changes will be overwritten when you upgrade the H5P WordPress Plugin

I have tested but it did not work. This error msg: "File is not an image."

The file is uploaded but after uploading the next step in the process will fail.

fnoks's picture

I should have mentioned the code-change I suggested was untested. I see now there are logic related to getting the width and height of the image, that makes SVG not beeing handled correctly yet.

falcon's picture

Sorry about that :/

I think you'll have to wait till H5P starts supporting svg.

Hi, at NDLA.no we would very much appreciate the option of using vector graphics. What does the near future look like for vector graphic in h5p implementation?

ki