exiv2
exiv2 copied to clipboard
exiv2 rename example in the man pages doesn't work the way it says it should.
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
@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.
Thank you! Rob
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Peter @.> Sent: Monday, July 25, 2022 2:25:51 AM To: Exiv2/exiv2 @.> Cc: Rob Frohne @.>; Mention @.> Subject: Re: [Exiv2/exiv2] exiv2 rename example in the man pages doesn't work the way it says it should. (Issue #2290)
CAUTION: This email originated from outside the Walla Walla University email system.
@frohrohttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffrohro&data=05%7C01%7Crob.frohne%40wallawalla.edu%7Cef2d053a28b142a49cd908da6e1fab2d%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637943379548637592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=l%2FWsDVINMyTRyY%2BiXt%2FEUDlpM5ydsbAF3AQkqoQyHLs%3D&reserved=0: 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 manpagehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FExiv2%2Fexiv2%2Fblob%2Fmain%2Fexiv2.md&data=05%7C01%7Crob.frohne%40wallawalla.edu%7Cef2d053a28b142a49cd908da6e1fab2d%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637943379548637592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=460tCjueURTKT0t1tANsvOKCaKwy%2FrrxVpR2UYiBwoE%3D&reserved=0 is almost compatible with the 0.27.5 release (see the historyhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FExiv2%2Fexiv2%2Fcommits%2Fmain%2Fexiv2.md&data=05%7C01%7Crob.frohne%40wallawalla.edu%7Cef2d053a28b142a49cd908da6e1fab2d%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637943379548637592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jsjkK75%2FCM0hl6w48JNK7xzieJzbe932N7PSDSxiyzA%3D&reserved=0 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 herehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FExiv2%2Fexiv2%2Fblob%2Fmain%2Fexiv2.md%23rename_fmt&data=05%7C01%7Crob.frohne%40wallawalla.edu%7Cef2d053a28b142a49cd908da6e1fab2d%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637943379548637592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=GGDOtV2uvJNfI9Go5a%2FgSl2yCecs5f0MB%2Bu3kvjxpfQ%3D&reserved=0.
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FExiv2%2Fexiv2%2Fissues%2F2290%23issuecomment-1193803987&data=05%7C01%7Crob.frohne%40wallawalla.edu%7Cef2d053a28b142a49cd908da6e1fab2d%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637943379548637592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=wCPFuD%2Bi5sXpryV80fqh2Z5%2BLMWybTha1LEDMeCarUA%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAHS2BK4DKIQF7N2CY2CJPDVVZMR7ANCNFSM54QXD3WQ&data=05%7C01%7Crob.frohne%40wallawalla.edu%7Cef2d053a28b142a49cd908da6e1fab2d%7Cd958f048e43142779c8debfb75e7aa64%7C0%7C0%7C637943379548637592%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=U52A2BJpPOlQIpv38R6WoqElVIXWbfYn0OavIbwTlGI%3D&reserved=0. You are receiving this because you were mentioned.Message ID: @.***>