New project looking for ideas on how to do it - picture names

(It was hard to rename them when they were on a DVD)

I've recently put a LOT of pictures (.jpg) on my NAS.

Their existing names are somewhat..... poor.
I do see the advantage leaving them with their default names as when I look at them, they are in chronological order. But that makes it difficult to find a picture.

First thought is I leave/keep a prefix number for all the pictures in that directory, THEN add a descriptive name.

So the idea: Use NR to do the work.
What I'm wanting the flow to do:

I point to the NAS drive/folder on which I want to work.
A window opens and I see a preview of the piccie.
I can get the meta data displayed if I want. (exif?)
I have an option to rename the picture.

I'm not sure how to do all that.

I don't want to fall into the habit of having an idea and just asking Mr GPT for help.
I'd like to keep the resident hamster living in my head busy.

I guess I could start trying with local file/pictures to get the basics working.

But I'm stuck.

Someone?

1 Like

Seems I have run into a problem as I am trying to access external files (ones not in the public directory.

What will exif show you that you are interested in and how would you like to rename them (ie to what?).

sidenote, i always work with tools on the commandline directly and call those with an exec node, a tool like exiftool can read a directory recursively and use the -json option so that it becomes usable in node-red.

1 Like

Well, I view pictures with a non-specific viewer that only shows the pictures.

Some of the directories have a LOT of files with very similar names.

So the idea is I somehow view the pictures (on NAS drive) and it is shown.

I have a window with the exif data (time,date etc) if I want to see it.

Looking at the picture, I have a field with the name and I can edit it and change it to something maybe more applicable.

But, there is a prefix so the directory listing remaining showing them by time taken.

Personally, I use a rename tool - for existing pictures I will rename in place. As most of my pictures are photos that contain at least some EXIF data, I use a set pattern and I split the images into folders based on year and month which I find works well for me.


I currently use Advanced Renamer though, of course, there are many other tools.

There is at least 1 npm module that will use exiftool behind the scenes and can be used with function nodes. exiftool is THE tool for managing exif data.

BTW, if renaming based on the exif date/time - don't forget that you may have clashing file names - don't forget to allow for adding an index number.

Ok, thanks.

Alas the problem I am now facing is how to get/give NR access to EXTERNAL pictures.

That is: Ones not in it's public directory.

The usual way would be to create a filing system LINK. In effect, you create a link in the public folder to the source folder.

1 Like

I have seen that mentioned.

But for now it is too much of an unknown for me to do it.
(And I don't know how to do that sort of stuff.)

Andrew - you need to take a look at Single File Gallery as I think it would be ideal for your needs.

Single File Gallery

If your NAS supports PHP, then it would be dead easy to implement.

I use SFG on one of my servers in London to manage our family Photo Gallery.

Top Level - main selection area


Thumbnails within a specific folder (daves_fav_photos)

A photo at full size with corresponding EXIF info panel

Navigation Button at the bottom of the screen
monday_SFG_D
How I name the folders on my server

SFG offers loads of customisation using CSS and parameter options.

EDIT: The way I use SFG is to create a folder, with a suitable name, on my server - then FTP all the images into that area. SFG will "automagically" catalogue them for you - either by time/date or by filename (your choice).

1 Like

It is a synology drive (off line just now)
Ok, saying it does support that protocol....

So is Single File Gallery its own program or part of NR?

SFG is a standalone PHP script - nothing at all to do with Node-RED. Best of all it is FREE.

1 Like

I'll give it a go then.

Thanks.

Just to get the naming done.

It is painful having a directory with 300 files all named.......

something_nnn.jpg

as all of them were at a particular event, but also have sub-locations which would be better named something else.

Oh, Ubuntu, or which O/S?

This one

Or this one?

That's easy to implement. For example, I have a folder called "Walks" at my top level.


If I click it, it opens a set of sub-folders...

1 Like

It's not THAT hard! :slight_smile:

On Windows:

mklink /J \LinkHostFolder \OriginalFolder

On Linux:

ln -s /OriginalFolder /LinkHostFolder

To use the above with a remote NAS Drive, make sure you share the NAS drive as NFS for Linux or SMB for Windows. Then mount the remote drive into the filing system.

Remember, you only ever have to do this once!

Personally, while all my photos are on the NAS and are backed up from there to the cloud (don't forget that bit!), I actually have a COPY of them on my desktop PC and that is where I work on them. After doing some work, I use FreeFileSync to synchronise them back to the NAS. This is much quicker than trying to work on them remotely.

Ok, there are a few options now.

Dave's suggestion is interesting, but I don't have php (any) installed.

It may be an easier way to go, but it would be interesting to keep an eye on doing it with NR only for the reason I ant to improve my understanding of how it all works.

That is: Learn something and not spread myself too thin over too many different programs.

Forgot to say...
There is an 'Admin' option in SFG that allows a user to rename/move/delete images.

Well it is the rename part which is what I'm wanting to do.

Just as is, I have to view them with one program then rename them.
Trying to keep them in order so the viewer doesn't throw a tanty.

If that does/allows viewing and renaming in one.....

Oh, sorry, which one of the two links is the one?