πως θα κανω gif animation

stefan | Δευ, 04/16/2012 - 13:23 | 1' | 5

πως μπορω να κανω ευκολα και γρηγορα gif animation ;;;

Tags
Δώσε αστέρια!
Σχόλια

Ενα παλιο σκριπτακι που ειχα κανει για το δεξι κλικ του  Nautilus μπορει να σε βοηθησει


#!/bin/bash


# Make a folder with given name.
name="thumbs"

mkdir -p $name

# Copy all photo file in the new folder.
find ./ -maxdepth 1 -iname '*.jpg' -exec cp -n {} $name \;
find ./ -maxdepth 1 -iname '*.JPG' -exec cp -n {} $name \;

find ./ -maxdepth 1 -iname '*.gif' -exec cp -n {} $name \;
find ./ -maxdepth 1 -iname '*.GIF' -exec cp -n {} $name \;

find ./ -maxdepth 1 -iname '*.png' -exec cp -n {} $name \;
find ./ -maxdepth 1 -iname '*.PNG' -exec cp -n {} $name \;

# Go to the new folder
cd $name

# create a text entry dialog.
Width=$(zenity --width 450 --entry --title="Width of gif." --text "Width of Animation GIF?" --entry-text "150"); echo $Width

    # If user aborts, zenity returns nothing, and $szAnswer will be zero length,
# Remove all files created by the script and then exit.
    if [ -z "$Width" ] ; then
 cd ../
 rm -rf $name
 exit
fi

# Resize all photo files.
width="$Width"

function resize() {
for i in "$name"; do
echo "PROGRESS";
find ./ -iname '*.jpg' -exec mogrify -resize $width *.jpg \;
find ./ -iname '*.JPG' -exec mogrify -resize $width *.JPG \;
find ./ -iname '*.gif' -exec mogrify -resize $width *.gif \;
find ./ -iname '*.GIF' -exec mogrify -resize $width *.GIF \;
find ./ -iname '*.png' -exec mogrify -resize $width *.png \;
find ./ -iname '*.PNG' -exec mogrify -resize $width *.PNG \;
done
}
# Show a progress bar.
resize | (if `zenity --progress --pulsate --auto-close --width 500 --title "Resize | Wait Resize images" --text "Resize images..."`;
                 then
# Info box when resize complete.
zenity --info --width 450 --title="Complete" --text="The resize is now complete."
                 else
# If user abort stop everything remove all files
# created by the script and then exit.
                     killall find
                     killall mogrify
                    cd ../
                    rm -rf $name
                 exit;
                 fi)

Name_a=$(zenity --width 450 --entry --title="Gif Animation name."  --text "Name of the Gif Animation?" --entry-text "New"); echo $Name_a

del=$(zenity --width 450 --entry --title="Gif Animation Delay."  --text "Delay of the Gif Animation?" --entry-text "100"); echo $del

convert -delay $del -loop 0 *.png *.jpg $Name_a.gif

cp $Name_a.gif ../$Name_a.gif

cd ../

rm -rf $name

exit


Να κάνω μία ερώτηση βρε παλικάρια;;

Το gif είναι αρχείο multimedia;;; ( έτσι ρωτάω...)