25 |
52 |
53 | {/* Page0 */}
54 |
55 |
56 |
第一步:选择需要重命名的文件
57 |
58 | -
59 | 点击
60 | }
65 | >
66 | 打开文件夹
67 |
68 |
69 | - 将文件拖入窗口中
70 |
71 |
72 |
73 |
74 | {/* Page1 */}
75 |
76 |
77 |
第二步:确认新文件名
78 |
79 | - 在输入框中输入命名格式
80 | - 在表格中实时预览新文件名
81 |
82 |
83 |
84 |
85 | {/* Page2 */}
86 |
87 |
88 |
第三步:执行重命名操作
89 |
90 | -
91 | 点击
92 |
96 |
97 |
98 |
99 |
💡 打开设置查看重命名规则
100 |
101 | -
102 | 点击左下角的
103 |
108 |
109 |
110 | 图标
111 |
112 | -
113 | 使用快捷键
114 | Ctrl/Command + ,
115 |
116 |
117 |
118 |
119 |
120 | {/* Page3 */}
121 |
122 |
123 |
Q&A:多个文件元数据相同
124 |
125 | - 如果多个文件含有相同的元数据,软件将自动生成序列号以避免命名冲突。
126 |
127 |
128 |
129 |
130 | {/* Page4 */}
131 |
132 |
133 |
Q&A:缺少元数据
134 |
135 | - 如果文件缺少元数据,将使用占位符补足。
136 | - 如果在设置中开启严格模式,会忽略元数据缺失的文件。
137 |
138 |
139 |
140 |
141 | {/* Page5 */}
142 |
181 |
182 |
183 |
184 | {page === 5 ? (
185 |
186 |
macOS:提示“软件已损坏,无法打开”
187 |
打开终端输入以下命令:
188 |
189 | sudo xattr -d -r com.apple.quarantine /Applications/Rename\ Photos.app
190 |
191 |
192 | ) : (
193 |
194 |
201 |
202 | )}
203 |
204 |
205 |
206 | )
207 | }
208 |
--------------------------------------------------------------------------------
/web/src/app/page.tsx:
--------------------------------------------------------------------------------
1 | 'use client'
2 |
3 | import duplicatesEn from '@/assets/images/duplicates-en.png'
4 | import homeEn from '@/assets/images/home-en.png'
5 | import lackExifEn from '@/assets/images/lack-exif-en.png'
6 | import successEn from '@/assets/images/success-en.png'
7 | import { IconLanguage, RiFolderOpenLine, RiSettings4Line } from '@/components/icon'
8 | import MacShot from '@/components/mac-shot'
9 | import { useFullPage } from '@/hooks'
10 | import { Button } from '@nextui-org/button'
11 | import { Snippet } from '@nextui-org/snippet'
12 | import clsx from 'clsx'
13 | import { motion } from 'framer-motion'
14 | import Image from 'next/image'
15 | import Link from 'next/link'
16 |
17 | const images = [homeEn, homeEn, successEn, duplicatesEn, lackExifEn]
18 |
19 | export default function NamePhotos() {
20 | const { page, setPage } = useFullPage({ maxPage: 5 })
21 | const currentImage = images[page]
22 |
23 | return (
24 |
25 |
52 |
53 | {/* Page0 */}
54 |
55 |
56 |
Step 1: Choose files to rename
57 |
58 | -
59 | Click
60 | }
65 | >
66 | Open Folder
67 |
68 |
69 | - Drag and drop files into the window
70 |
71 |
72 |
73 |
74 | {/* Page1 */}
75 |
76 |
77 |
Step 2: Confirm the new names
78 |
79 | - Enter the format in the input box
80 | - Preview the new names in the table in real time
81 |
82 |
83 |
84 |
85 | {/* Page2 */}
86 |
87 |
88 |
Step 3: Apply the rename
89 |
90 | -
91 | Click
92 |
96 |
97 |
98 |
99 |
💡 Open settings to view the rename rules
100 |
101 | -
102 | Click
103 |
108 |
109 |
110 | in the bottom left corner
111 |
112 | -
113 | Use the shortcut
114 | Ctrl/Command + ,
115 |
116 |
117 |
118 |
119 |
120 | {/* Page3 */}
121 |
122 |
123 |
Q&A: Multiple files share metadata
124 |
125 | -
126 | If multiple files share the same metadata, the app automatically adds sequence numbers to avoid naming
127 | conflicts.
128 |
129 |
130 |
131 |
132 |
133 | {/* Page4 */}
134 |
135 |
136 |
Q&A: Missing metadata
137 |
138 | - If a file lacks metadata, placeholders are used.
139 | - If strict mode is enabled in Settings, files without metadata are skipped.
140 |
141 |
142 |
143 |
144 | {/* Page5 */}
145 |
146 |
147 |
Download & Install
148 |
182 |
183 |
184 |
185 |
186 |
187 | {page === 5 ? (
188 |
189 |
macOS: “App is damaged and can't be opened”
190 |
Open Terminal and then enter the following command:
191 |
192 | sudo xattr -d -r com.apple.quarantine /Applications/Rename\ Photos.app
193 |
194 |
195 | ) : (
196 |
197 |
204 |
205 | )}
206 |
207 |
208 |
209 | )
210 | }
211 |
--------------------------------------------------------------------------------