Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
workflow:image_type [2017/10/08 02:00] – [Image data workflow] Júne Park | workflow:image_type [2018/02/18 21:53] – [PROCESSING] Júne Park | ||
---|---|---|---|
Line 8: | Line 8: | ||
==== SOURCING ==== | ==== SOURCING ==== | ||
- | {{fa> | + | {{fa> |
Line 14: | Line 14: | ||
==== PROCESSING ==== | ==== PROCESSING ==== | ||
- | {{fa> | + | {{fa> |
+ | * Command-line convert utility: [[https:// | ||
+ | |||
+ | * Rename files randomly: [[ | ||
+ | |||
+ | <code bash> | ||
+ | rename -n ' | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | $ rename -n ' | ||
+ | 11512345714x611aaa.jpg -> 1151234571.jpg | ||
+ | 1201230111FbcAdee.jpg -> 1201230111.jpg | ||
+ | 1208605001abAcd.jpg -> 1208605001.jpg | ||
+ | </ | ||
+ | |||
+ | The -n option only simulates the command, so that you can verify the changes. Run without it to actually make the changes. | ||
+ | |||
+ | The regex (.{10}).*(\.jpg) consists: | ||
+ | |||
+ | .{10} - any 10 characters, in a group (…), followed by .* - any number of any characters followed by \.jpg$ | ||
+ | the extension at the end ($) of the filename, in the second group. The replacement $1$2 is just the first group followed by the second. | ||
Line 21: | Line 42: | ||
==== CONSUMING ==== | ==== CONSUMING ==== | ||
- | {{fa> | + | {{fa> |
Line 27: | Line 48: | ||
==== ARCHIVING ==== | ==== ARCHIVING ==== | ||
- | {{fa> | + | {{fa> |
---- | ---- |