Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 314

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 454

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/auth.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/auth.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/actions.php on line 128
linux_scripts:image2internet.sh [wiki.BerndLux.de]
 

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/parser.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 292

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 22

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 44

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 236

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 290

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 323

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/handler.php on line 560

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/parser/lexer.php on line 510

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parser/xhtml.php on line 980

image2internet.sh

#!/bin/bash

#==============================================================================
# VERSION : 0.01
# LICENCE : GPL
# FILENAME: image2internet.sh
# PURPOSE : to create 800x600 images for the internet out of bigger ones 
# DATE    : 2004-02-27
# REVISION: 2005-11-16
# AUTHOR  : (c) 05.11.16 Bernd Luxenburger, bernd@rlux.de
# URL     : http://berndlux.de
# ORIGINAL: (c) 04.02.27 Bernd Luxenburger, bernd@rlux.de
# USAGE   : image2internet.sh *.jpg  
# USES    : bash, ImageMagic (mogrify)
# SYSTEM  : GNU/LINUX
# INIFILE :  
# =============================================================================

# This is a small script, written by Bernd Lux. (bernd@rlux.de)
# to create 800x600 images for the internet out of bigger ones.
#
# Requirements: ImageMagic (mogrify)
#
# bernd 04.02.27   18:55
#
# CHANGELOG:
#
# --- 04.02.27  V0.01
#     + the base code 
# --- 04.03.06 V0.01
#     + files now as option
# --- 05.07.29 V0.01
#     + create tar including rezised images
# --- 05.11.16 V0.01
#     FORK to images2internet2.sh
#     + tar funktion
#     + walk path and rezise its contends
#

SIZE="640x480"
#SIZE="800x600"
CONV="/usr/bin/convert"
 
#mogrify (or convert) -quality 90 -geometry '800x600>' *.JPG
if [ -n "$1" ] ; then
#   for i in "$@" ; do
    FILES="$@"
#   done 
#  echo $FILES
#find $DIR/ -type f -iname '*.jpg' | \\
#                       grep -v -i -e 'thumbs' -e 'n4all' -e 'html' -e 'schrott' \\
#                        -e 'tmbn' -e 'xvpic'  -exec  $CONV -quality 94 -size $SIZE -resize $SIZE $DIR/{} $DIR/{} \; ;
 
 else
  echo "Gehtnicht, keine dateien angegeben";
  echo "usage: $0 rezises given files move it to ./klein/"
  echo "and put in an tar";
  exit 1;
fi
 
if test -d ./klein ; then
  echo "es gibt den ordner ./klein schon"
  exit 1;
 else
  mkdir ./klein
fi
 
for i in $FILES
do
 if [ -f $i ]; then
        $CONV -quality 94 -size $SIZE -resize $SIZE $i ./klein/$i
        echo "$i Verkleinert"
    #   mv  $i.2 `basename $i.2 .2`
 fi
done
echo "Erstelle Tar-archiv";
cd ./klein/
tar -cf ../Bilder.tar ./*
 
exit 0;
 
linux_scripts/image2internet.sh.txt · Zuletzt geändert: 2006/07/09 12:23 von bernd
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki