6 Anwendungen, Installation, Einrichtung und kleine Skript-Werkzeuge
6.9 Bildbearbeitung
sudo apt-get install imagemagick
Need to get 668 kB of archives.
After this operation, 799 kB of additional disk space will be used.
Die Konvertierung von Bildern auf der Konsole werden mit dem Befehl „convert“ aufgerufen.
convert $fname.tiff $fname.jpg ;
convert -quality 30 -resize 70% $fname.tiff "$fname"_min.jpg
convert -quality 30 $fname.tiff "$fname"_min.jpg
convert "$fname"_min.jpg "$fname"_min.pdf
Anwendung für Bilder-Show:
$ sudo apt-get install gwenview
0 upgraded, 3 newly installed, 0 to remove and 8 not upgraded.
Need to get 2,959 kB of archives.
After this operation, 4,365 kB of additional disk space will be used.
Wenn sich die Bilder in Unterordner befinden, können mit folgenden Script diese als Link in dem darüber liegenden Verzeichnis aufgerufen werden:
$ find -type d | sort
.
./102_Rol
./102_Rol_02
./103_Fj
./104_Fj
./105_Fj
In dem Falle wird ein Verzeichnis ausgeblendet und zusätzlich bereits vorhandene gleiche Links vorher entfernt.
$ for i in $(find . -type f | grep -v "102_Rol/D") ; do a=$(echo $i | sed -e "s/\.\///g" | sed -e "s/\//_/g" ) ; echo $i " " $a ; unlink $a ; ln --symbolic $i $a ; done
Für die Bilder-Show entferne man einfach die Links der nicht zu zeigenden Bilder. Diese Links können in ein anderes Verzeichnis zur Archivierung geschoben werden und bei Bedarf jederzeit wieder geholt werden. Somit können ohne nennenswerten zusätzlichen Platzbedarf verschiedene Auswahlen für die Bilder-Show abgelegt werden.
$ sudo apt-get install fgallery
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 2,771 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
error: cannot run "tificc" or "tificc2" (check if liblcms2-utils is installed)
On Debian/Ubuntu, you can install all the required dependencies with:
sudo apt-get install imagemagick exiftran zip liblcms2-utils
sudo apt-get install libimage-exiftool-perl libcpanel-json-xs-perl
(Lit: https://www.thregr.org/~wavexx/software/fgallery/)
$ sudo apt-get install imagemagick exiftran zip liblcms2-utils
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 42.7 kB of archives.
After this operation, 153 kB of additional disk space will be used.
$ sudo apt-get install libimage-exiftool-perl libcpanel-json-xs-perl
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 89.4 kB of archives.
After this operation, 258 kB of additional disk space will be used.