Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: could we use a SHA1 key as id for images and sounds? #7

Open
jonaslu opened this issue Apr 26, 2015 · 3 comments
Open

Idea: could we use a SHA1 key as id for images and sounds? #7

jonaslu opened this issue Apr 26, 2015 · 3 comments
Labels

Comments

@jonaslu
Copy link
Collaborator

jonaslu commented Apr 26, 2015

Would it help to identify all sounds and images as a "package" with a SHA-1? This way we're not tied to names being unique and we can add more metadata to the samples easily. In the backend we can serve images and sounds with the same key. This would make templating easier?

The sounds and images could be a json-object, example

  { '097d80883f7c5e0f49c1bd24e15942e9ba11f37b': {
    'wav': 'sound/097d80883f7c5e0f49c1bd24e15942e9ba11f37b.wav',
    'length': '10',
    'image': image/097d80883f7c5e0f49c1bd24e15942e9ba11f37b.png',
    'mime-type': 'image/png' }
  }
@jonaslu
Copy link
Collaborator Author

jonaslu commented Apr 26, 2015

Stats could go into the json object too..

And then we could build a database / metadata admin backend to parse the json and print stats..

TEH POSSIBILITES ARE ENDLESS!!! (Given infinite amount of time...)

@meros
Copy link
Owner

meros commented Apr 26, 2015

I have been thinking in these terms as well. But at the same time I'm reluctant to loose the simplicity of simply files in a folder... The stats however should probably change, the format is not very nice.

@jonaslu
Copy link
Collaborator Author

jonaslu commented Apr 26, 2015

Ok, in a distant future - if we add uploading of files via the front-end maybe this will be necessary since the url:s will probably not be clear what the file is. Or we can add a dialog where the user can name the downloaded file. Let's keep it simple until then...

@meros meros added the wontfix label Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants