Batch Import images as new records?

101 views
Skip to first unread message

Gabriel

unread,
Jun 10, 2026, 7:53:48 PMJun 10
to mementodatabase
For Memento on Android (local only), is there a way to take a folder of images and automate creating a new record in a library for each image? I tried ChatGPT and could not get Javascript code that worked (not really familiar with JS). I searched the google group and didn't find a relevant thread, but maybe I'm using the wrong terms. Thanks.

Mmm

unread,
Jun 11, 2026, 9:02:56 AMJun 11
to mementodatabase
Вариант решения (Андроид 16).

Основано на приеме:

Алгоритм:
1. Выделить нужные файлы изображений в менеджере файлов (TC for Android или другой) и скопировать их пути.
2. Выполнить скрипт действие в библиотеке "Paths => New Entry".
Создадутся записи, но изображения будут недоступны.
3. Перейти в "Файлы" в боковой панели библиотеки.
4. Три точки => Поиск пропавших файлов => Выбрать папку с изображениями => Подтвердить результаты поиска.
5. Поиск файлов придется выполнять для каждого нового добавления записей.

Если в MDB будет доступна мультизагрузка файлов в поле изображение, то можно выполнить другой алгоритм действий:
1. Создать запись. 
2. Добавить все нужные изображения в одно поле. 
Сейчас это можно выполнить поочередно по одному изображению.
3. Скриптом действие в записи "Photos => New Entry" создать новые записи для каждого изображения.

Проголосовать за мультизагрузку изображений можно тут:

Дополнительно:
Скрипт действия в библиотеке "All pics => New Entry (for tests only)" собирает картинки из всех записей в новую запись и удаляет другие записи в Корзину. По умолчанию скрипт отключен.

Шаблон с примером в каталоге шаблонов:

четверг, 11 июня 2026 г. в 02:53:48 UTC+3, Gabriel:
IC__11062026-1.jpg
IC__11062026-2.jpg

Gabriel

unread,
Jun 16, 2026, 6:46:52 PM (12 days ago) Jun 16
to mementodatabase
Thanks, I ultimately opted for a simpler process to get a bunch of images into my library at once by importing via csv file, I'll leave these notes in case it helps anyone else:
  1. Generate a list of all the file names
  2. Create a CSV file with a column for the image location, and a row for each file ( file:///storage/emulated/0/ImageImportFolder/001.jpg )
  3. Import the CSV. Memento won't be able to read outside of its scoped storage, so image links will be broken.
  4. To fix the broken links, within the Library go to the three dot menu and select Files, then click on the three dot menu there an click "Find Missing Files". You can then navigate to the folder where the files are stored on your Android device and memento will reconnect the images based on the file names. 

Mmm

unread,
Jun 20, 2026, 3:17:53 AM (9 days ago) Jun 20
to mementodatabase
В 5.9.1 появилась мультизагрузка изображений.
Второй вариант решения будет более простой в выполнении.
Создать новую запись. 
Загрузить все нужные изображения в одно поле.
Скриптом создать новые записи, для каждого изображения.

среда, 17 июня 2026 г. в 01:46:52 UTC+3, Gabriel:
Reply all
Reply to author
Forward
0 new messages