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

Be able to change the file name format. #65

Open
bzamecnik opened this issue May 20, 2019 · 8 comments
Open

Be able to change the file name format. #65

bzamecnik opened this issue May 20, 2019 · 8 comments

Comments

@bzamecnik
Copy link

bzamecnik commented May 20, 2019

By default phockup renames the files completely using a date-based pattern. We can just keep the original name, but nothing in between. It might be useful to keep the original part of the file name and add that date prefix. Also it might be useful to change the date format, eg. to avoid the long "timestamp".

@ivandokov
Copy link
Owner

Changing the date format is possible at the moment https://github.com/ivandokov/phockup#date-format but I agree that keeping the original name and prefixing it with the date is a good option. Unfortunately I am occupied at the moment and can't develop it right away but I will once I get some free time, unless someone else wants to take this feature and submit a PR. I'd appreciate it!

@HugoQuadradoSmarkio
Copy link

Hello!
I know I can change the date/time for folders, but how can I change it to the filename of the images?

Thanks.

@anlag
Copy link

anlag commented Nov 9, 2020

Another useful thing to optionally have in the filename, at least for me, is the name of the camera as obtained from the EXIF data. I have a lot of photos from both smartphones and DSLRs; I don't mind them mixing in the same folder structure but it would be nice to have an option to show in the filename which is from where.

@inkhey
Copy link

inkhey commented Jan 10, 2021

Hello ! I just tested this nice script and i'm thinking about something which stay unclear to me. It's related to the file format and may be important to take into account if the software allow changing the file name format, but it's not directly related to the fact we cannot change it easily now.

One important things to take into account with the naming is avoiding naming conflict. I do try and phockup is intelligent enough to not rewrite existing file. I imagine it is just checking filename which is enough (another solution could be doing some rsync-like stuff but i don't think it's really important, case where file where broken are rare). The problem i do see it, that is far i understood the naming is based on second timing. I'm not really sure to be right, but what should happening in case of burst mode with many photos with similar date ? Is this case already taken into account with current file_name format ? I will probably give a try to verify but i prefer to ask first.

@ivandokov
Copy link
Owner

The cameras which allow burst images are using subseconds to their timestamps and they produce unique names.

Also the software is checking the checksum of files with same output name to avoid overwriting of files.

@anttitelio
Copy link

So what is the format of the file names, actually? In the documentation I can find only the format of the directories, but not the files.

@akyag
Copy link

akyag commented Dec 10, 2022

There should be an option to specify the name format because I had an organized folder sorted previously by phockup, I ran the software again and now my collection has duplicate images all over since the subseconds being used in the filename wasn't a thing before. So for ex now I have
20181202-173927.jpg
20181202-173927276.jpg
this type of duplication all over the place and don't know what to do about it other than manually checking every folder.

@DimShpInt
Copy link

Hello, please tell me if the photo was taken in, for example, the time zone +3 in the file name, the shooting time will become 3 hours longer. How can this be fixed?
20160502-17483950.jpg
create time 14:48:39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants