Support for animated pictures

"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?

Tags: Open

Close issue

Comments


This wiki uses a variant of Markdown.

To save this page you must answer this question:

Please write "new issue" into the field below.