From d68e293f41c0962e3b80daa10ba21de9a1ad808c Mon Sep 17 00:00:00 2001 From: Sam Goodger Date: Sun, 17 Oct 2021 00:31:58 +1100 Subject: [PATCH] Add images folder with README --- database/seeds/01_images.js | 6 ------ database/seeds/images/README.md | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 database/seeds/images/README.md diff --git a/database/seeds/01_images.js b/database/seeds/01_images.js index 976d013..7b7b935 100644 --- a/database/seeds/01_images.js +++ b/database/seeds/01_images.js @@ -1,9 +1,3 @@ -/* HOW TO BULK LOAD IMAGES - * Simply place images in the "images" folder to seed them - * The order images are uploaded cannot be guaranteed because of how Promise.all() works - * For best results, make sure your images have the metadata "DateTimeOriginal" - */ - const fs = require('fs'); const { putImage } = require('../../server/actions'); const filePath = __dirname + '/images/'; diff --git a/database/seeds/images/README.md b/database/seeds/images/README.md new file mode 100644 index 0000000..18666e6 --- /dev/null +++ b/database/seeds/images/README.md @@ -0,0 +1,3 @@ +# How to bulk load images +Simply place images in the `database/seeds/images` folder to seed them. The order images are uploaded cannot be guaranteed because of how [`Promise.all()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all) works. +For best results, make sure your images have the EXIF metadata `DateTimeOriginal`.