size of zip exports
Hi,
is there a way to reduce the size of the exported compressed content ?
looking in the compressed archive, many libraries seems to be unnecessary for the content to run.
moreover, within a well configured h5p WordPress, we could assume that the libraries are avaiblable and well versionned, isn't it ?
I would like to generate content from conferences with slides (that would appear as images during the video display) : I will generate many zip files and I would like to optimize the size of each h5p archive.
one last question, I don't know well PHP and WordPress (I'm from "java land") and don't know where to search for importing error (I tried to empty the archives without success ...) : how could I verify the errors generated by my manipulations of zip contents ?
thanks a lot for this useful peace of software ;-)
Philippe
tim
Wed, 11/22/2017 - 09:28
Permalink
Hi Philippe, There is no
Hi Philippe,
There is no guarantee that a plugin would have all the necessary files to run, so to be on the safe side all the dependencies are zipped up.
You could optimize the zipping of your files by modifying the source code here:
https://github.com/h5p/h5p-php-library
I'm afraid there is no inbuilt configuration for zipping files.
What do you mean by importing error?
peg
Thu, 11/23/2017 - 11:26
Permalink
Hi Tim,Thanks for the answer
Hi Tim,
Thanks for the answer.
I'll get an eye on the code even if I'm not Php compatible ;-)
For "importing errors", I meant that trying to remove some librairies, got error that I could'nt identifiy (don't know in which log file to look at).
Thansk again,
Phil
tim
Thu, 11/23/2017 - 14:49
Permalink
Could you share the error and
Could you share the error and maybe any other relevant information?
peg
Fri, 11/24/2017 - 17:32
Permalink
error example
hi,
for instance I get this kind of error after removing some librairies :
"Could not validate H5P file.
Make sure the uploaded H5P contains valid H5P content. H5P files containing only libraries should be uploaded through the H5P Libraries page."
It is a very small zip.
I can't access php error log file because my ftp access doesn't let me.
thanks
Phil
tim
Mon, 12/04/2017 - 16:00
Permalink
Hi Phil, I recommend setting
Hi Phil, I recommend setting up a local installation of H5P or change the privileges on your server so that you can access the php logs. I'm sorry I can't be of more help.
peg
Thu, 12/07/2017 - 09:50
Permalink
Thansk for your help. I will
Thansk for your help. I will install locally. ;-)