MM-Lehmann / pptx2h5p

Powerpoint to .h5p course presentation converter. Windows (+ MS Office) only.
BSD 2-Clause "Simplified" License
31 stars 4 forks source link

images sizes #10

Closed jharej closed 11 months ago

jharej commented 2 years ago

Hello, we have tested this great tool and discover that h5p files are a lot larger that coresponding pptx files - I can understand why ... Is there an option to set the size of exported images that get included in h5p? Thanks

MM-Lehmann commented 2 years ago

Sorry, No. Currently, they cannot be set and are inherited from the presentation itself. Maybe you can try changing the size of the presentation?

MM-Lehmann commented 11 months ago

Apparently, one can set the x/y resolution in the ppt.Export(file, "PNG", x, y) call here. What would be your preferred Interface to determine the target resolution? Keep in mind, that there is currently no GUI. So IMHO the quick way would be to predetermine a "high" and a "low" resolution mode which can be called with the corresponding bat file.

jharej commented 11 months ago

Maybe in some config file in the same directory with the executable, where the default values would be set?

MM-Lehmann commented 11 months ago

I've changed the format to jpg in the latest release and also added zip compression. Files should be much smaller now. https://github.com/MM-Lehmann/pptx2h5p/releases/tag/v1.3