kensanata / sitelen-mute

a static image gallery creator
https://alexschroeder.ch/software/Sitelen_Mute
GNU General Public License v3.0
75 stars 7 forks source link

"Live" images (cover image + short video) #1

Closed kensanata closed 6 years ago

kensanata commented 6 years ago

"Live" images is something iPhones take: it takes a picture called IMG_7330.JPG and if the "Live" setting is switched on, it will also take a video valled IMG_7330.MOV at the same time.

I've been trying to add this functionality to fgallery for a few days, now. I can get the MOV files added to album.zip, and they're copied to the imgs subdirectory, but I'm not sure how to handle the user interface. This is what I get right now:

<img class="current" style="position: absolute; top: 22px; left: 320px; opacity: 1;" src="imgs/IMG_7330.jpg" height="627" width="470"/>

I think this is what I want, for those images where a movie with the same root name exists:

<video class="current" style="position: absolute; top: 22px; left: 320px; opacity: 1;" src="imgs/IMG_7330.mov" poster="imgs/IMG_7330.img" controls height="627" width="470"/>

The controls look ugly, so perhaps we'd want to create our own, eventually.

I guess we could add the info to data.json as follows:

{"date":"2016-08-20 20:40","blur":"blurs/IMG_7330.jpg","img":["imgs/IMG_7330.jpg",[900,1200]],"center":[491,495],"thumb":["thumbs/IMG_7330.jpg",[150,200]],"stamp":1471725638,"video":"imgs/IMG_7330.mov"}

I suspect Assets.images is going to be a problem, too?

kensanata commented 6 years ago

Moved to https://alexschroeder.ch/software/Support_for_animated_pictures

TrevorKlar commented 4 years ago

Do you still have plans to implement this feature? I would certainly get some great use out of it.

kensanata commented 4 years ago

At one point I had a branch that could do it but the native GUI my browser added looked terrible. If you want to give it a try, I’m happy to merge it!