manim-slides
manim-slides copied to clipboard
[FEATURE] Is it possible to create a slideshow with alternating images and videos using HTML?
Terms
- [x] Checked the existing issues and discussions to see if my issue had not already been reported;
Description
It seems that animations are essential for creating slideshows with next_slide().
Screenshots
No response
Additional information
No response
Hi @Dictat111, that would be a nice feature to add!
I don't think this would require a huge a work, but unfortunately I don't have much time to invest on this project myself at the moment.
Basically, what we could do is:
-
Edit
BaseSligeConfighttps://github.com/jeertmans/manim-slides/blob/6255f644abf49d54a77e73eebbe51986a16bb957/manim_slides/config.py#L154-L164 to hold a new field, e.g.,static_image: Optional[FilePath | PILImage]. We should probably add fields validator to avoid setting bothstatic_imageandsrc, for example. -
Add a new attribute to
BaseSlideConfig:@property def slide_type(self) -> SlideType: if self.static_image is not None: return SlideType.Image return SlideTypeand create the corresponding
enum(this would allow later to include more types of slides, e.g., custom HTML). -
Edit
BaseSlide.renderto skip copying / concatenating video files from slides that are notSlideType.Video. -
Edit the Qt player to skip (or include if possible) static images.
-
Edit the HTML converter (and probably PPTX can also support this) to include static images.
That being said, this will change the slides' config format, and thus be a breaking change. I am not against this, and might fit pretty well for Manim Slides v6.
If you are interested to contribute, please don't hesitate to reach out!