nypublicradio / audiogram

Turn audio into a shareable video.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support custom image upload backgrounds for individual audiograms

veltman opened this issue · comments

Allow people to upload their own image as the background for an individual audiogram. This would be pretty easy to implement, though it would require some means of scaling/translating the uploaded image.

commented

Currently it would be a matter of modifying the themes.json right?

This is about letting people upload images for individual audiograms, not for an entire theme (e.g. uploading a photo of the person who's being interviewed in a particular clip).

We haven't prioritized this so far because it would require a whole interface for moving/stretching/position each image and quality control is hard - opening up image uploading like that means it's easy for people to put in photos that look bad or they don't have the rights to.

Closing in favor of #32.

If anyone would be interested, I added this functionality to our app with this commit: DataRozhlas@921ebd6. If you'd like, I can make it into a pull request, or feel free to cherry-pick it.

It works that it draws either the uploaded image, the theme image or no image, in this order. The biggest change was the need to handle upload of multiple files, hence the renaming of req.file to req.file.audio.