You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exificator.rb
+34-4Lines changed: 34 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ def process
56
56
nextifnew_description.empty?
57
57
exiftool.descriptions=new_description
58
58
59
-
rename(image,new_description)
59
+
renameWithDescription(image,new_description)
60
60
end
61
61
end
62
62
@@ -84,13 +84,39 @@ def convert
84
84
end
85
85
end
86
86
87
+
option:prefix,type: :string,desc: 'Prefix to use. Defaults to last modified date in YYYYMMDDHHMMSS_ format.'
88
+
desc'rename','Renames in format <prefix>_<description>.<ext> if there is a description.'
89
+
defrename
90
+
ifimages.size == 0
91
+
puts"No images found."
92
+
return
93
+
end
94
+
95
+
unlessPrompt.confirm?("Are you sure you want to rename #{images.size} images in the format of #{options[:prefix]||'YYYYMMDDHHMMSS'}_<description>? (y/n)")
0 commit comments