This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
software:photo_workflow [2022/01/13 11:36] – chris | software:photo_workflow [2022/11/13 12:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== What? ===== | ||
+ | Summing up my current workflow to take pictures, get them into the computer, modify them and create the static album like https:// | ||
+ | ===== typical workflow ===== | ||
+ | * taking pictures, currently using the Sony RX100 | ||
+ | * I am not into the habit of taking RAW, the Sony stores .jpg pictures in sufficiently good quality for me. This quality allows to store much more on the 32GB medium, while still having great resolution and quality of the stored picture. | ||
+ | * I then create a new directory for the i.e. 3 weeks Japan trip, and copy a customized theme and a Makefile in there | ||
+ | * Subdirectories get created, called i.e. " | ||
+ | * Pictures from the cameras SD-card are copied to the computer, they are named i.e. P1020097.JPG . | ||
+ | * To get the pictures with filenames reflecting the time they were taken, I use the following command which uses the utility exif, on Fedora installed using "yum install exif". As you guessed, this uses the pictures exif informations: | ||
+ | < | ||
+ | # rename pic based on exif infos | ||
+ | for i in P*.JPG; do | ||
+ | mv $i $(exif $i | grep '^Date and Time (Origi' | ||
+ | done | ||
+ | </ | ||
+ | * Then I review the resulting pictures with qiv (yum install qiv), a simple viewer. They get moved into the created subdirectories like " | ||
+ | * Now in the directories I | ||
+ | * again review the pictures with qiv | ||
+ | * for some I decide to only preserve a certain important part of the picture, or rework it like sharpening or such. For this I open the picture with " | ||
+ | * Now I rotate portrait pictures 90°: | ||
+ | < | ||
+ | # for i in *; do if [[ $(identify -format ' | ||
+ | # echo " | ||
+ | # rm $i | ||
+ | # fi; done | ||
+ | </ | ||
+ | * Now the following command converts landscape pictures to 1920x and portrait pictures to x1920. This resolution is sufficient for my usual pictures, and considerably smaller than default resulution. The command uses " | ||
+ | < | ||
+ | # for i in *jpg; do | ||
+ | # echo -n " | ||
+ | # if [[ $(identify -format ' | ||
+ | # echo " | ||
+ | # | ||
+ | # echo " | ||
+ | # | ||
+ | # done | ||
+ | </ | ||
+ | |||
+ | * I run over the pictures with "qiv -fm *jpg" and delete either the small or the unchanged version pressing " | ||
+ | * Now all pictures in the directory are customized. Now I run "ls -1 *jpg > | ||
+ | * Now, having this done for all subdirectories, | ||
+ | * I have a special make target to convert the pictures down, so I they consume much less space and I can present them on the "asus nexus 7" tabled. The Makefile: | ||
+ | |||
+ | < | ||
+ | all: | ||
+ | album -index index.html . | ||
+ | |||
+ | show: | ||
+ | for i in $( album -list_themes|grep ^Theme|sed -e ' | ||
+ | album -theme $i ; read | ||
+ | done | ||
+ | |||
+ | nexus: | ||
+ | mkdir -p nexus7 | ||
+ | for i in $(find [012]* -maxdepth 1 -type f -name ' | ||
+ | convert $i -resize 1280x800 nexus7/ | ||
+ | done | ||
+ | </ |