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

exiv2 rename example in the man pages doesn't work the way it says it should. #2290

Closed
frohro opened this issue Jul 25, 2022 · 2 comments · Fixed by #2328
Closed

exiv2 rename example in the man pages doesn't work the way it says it should. #2290

frohro opened this issue Jul 25, 2022 · 2 comments · Fixed by #2328
Assignees

Comments

@frohro
Copy link

frohro commented Jul 25, 2022

It appears that the basename option is not documented correctly or perhaps doesn't work as it should. The manual page says:
` $ exiv2 -r'basename_%Y%m' rename img_1234.jpg
Renames img_1234.jpg to img_1234_200511.jpg

`
but what happens on Ubuntu 22.04 is the file name becomes
$ ls basename_202207.jpg
basename_202207.jpg
for this image first renamed to img_1234.jpg, taken in July 2022.

Rob

@postscript-dev
Copy link
Collaborator

postscript-dev commented Jul 25, 2022

@frohro:
You are right, the manpage is incorrect. For the 0.27.5 release, the manpage example is:

$ exiv2 -r'basename_%Y%m' rename img_1234.jpg

but should read:

exiv2 -r ":basename:_%Y%m" rename image.jpg

as the keyword needs to be surrounded by :s.

I am working on a different project at the moment but when I am finished, I will come back and update the text.

I have rewritten the manpage on the main branch and already corrected your issue. The new manpage is almost compatible with the 0.27.5 release (see the history for differences) but contains more corrections, information and examples. It is also written in markdown which is much easier to use. You can find the --rename fmt flag documented here.

@frohro
Copy link
Author

frohro commented Jul 25, 2022 via email

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

Successfully merging a pull request may close this issue.

2 participants