===== Image data Workflow =====
**Work in Progress** This page is under construction. No background action required.
----
==== FILES ====
''.png'', ''.jpg'', ''.gif''
----
==== SOURCING ====
{{fa>download?2x&color=#53777A}} Sourcing location
----
==== PROCESSING ====
{{fa>gear?2x&color=#53777A&fa-spin}} Processing tasks
* Command-line convert utility: [[https://www.imagemagick.org/script/download.php|ImageMagick]]
* Rename files randomly
rename -n 's/(.{10}).*(\.jpg)$/$1$2/' *.jpg
$ rename -n 's/(.{10}).*(\.jpg)$/$1$2/' *.jpg
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.
----
==== CONSUMING ====
{{fa>arrow-circle-right?2x&color=#53777A}} Consuming data
----
==== ARCHIVING ====
{{fa>cloud-upload?2x&color=#53777A}} Archiving in **LOCAL** & **CLOUD**
----