A következő címkéjű bejegyzések mutatása: fotózás. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: fotózás. Összes bejegyzés megjelenítése

2014. május 7., szerda

Install Photoshop CS6 on Ubuntu 14.04 x64

Install Photoshop CS6 on Ubuntu 14.04 x64

- Open the Terminal and type:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7 winetricks

winetricks atmlib gdiplus msxml3 vcrun2005 vcrun2005sp1 vcrun2008 fontsmooth-rgb gecko
- Start the installer:

cd [PS-Install-Directory]
wine setup.exe

- If installer fails, try the 32-bit wineprefix:

mv ~/.wine
~/.wine
_backup

WINEARCH=win32 WINEPREFIX=~/.wine winecfg

winetricks atmlib gdiplus msxml3 vcrun2005 vcrun2005sp1 vcrun2008 fontsmooth-rgb gecko 


cd [PS-Install-Directory]
wine setup.exe 

2013. április 2., kedd

Fotók rendezése EXIF információk alapján

Használat:

sudo apt-get install imagemagick
csop-exif-lite.sh /media/lemez/FOTOMAPPA/

#!/bin/bash
# Bash script to automatically sort photos into folders based on EXIF data for Ubuntu Linux - Lite version by GW (v2013-04-02)
# Original script source:
# http://mikebeach.org/2011/12/10/bash-script-to-automatically-sort-photos-into-folders-based-on-exif-data-for-ubuntu-linux/
# ----------------------------------------------------
# Warning! This script is just a PoC, use with care!
# ----------------------------------------------------

TARGETFOLDER="$1"
if [[ "$TARGETFOLDER" == "" ]]; then
    echo "Please specify the target (source) folder to sort."
    exit
fi

FILETYPES=("*.jpg" "*.jpeg" "*.png" "*.tif" "*.tiff" "*.gif" "*.xcf")

for x in "${FILETYPES[@]}"; do
 # Check for the presence of imagemagick and the identify command.
 # Assuming its valid and working if found.
 I=`which identify`
 if [ "$I" == "" ]; then
     echo "The 'identify' command is missing or not available."
    echo "Is imagemagick installed?"
    exit 1
 fi;

 echo "Scanning for $x..."
 # FIXME? Eliminate problems (if any) with unusual characters in filenames.

cd $1


result=`echo $1 | tail -c 2`
if [[ "$result" != "/" ]]
then
    echo "Trailing / (slash) required for path! Exiting."
    exit 1
fi


mkdir $1other
mkdir $1bin

 for file in `find $1 -maxdepth 1 -iname "$x"`; do
    #  echo "Item is: $file"
     
    identify -verbose $file | grep "exif:DateTime:" | awk -F\  '{print $2}' | sed s/:/-/g | { read mydate;
    if [[ $mydate == "" ]];
    then
        mv -i "$file" "$1other" ; echo "MOVE $file TO $1other " ;
    else
        mymonth=`echo "$mydate" | cut -c 1-7` ; echo "--- Month: $mymonth " ; mkdir $1$mymonth 2>/dev/null ;
        echo " DATE: $mydate MOVE ITEM: $file TO: $1$mymonth/$mydate ";
        mkdir "$1$mymonth/$mydate" 2>/dev/null ; mv -i "$file" "$1$mymonth/$mydate";

        if [[ $? -ne 0 ]];
            then mv -i "$file" "$1bin"; echo "MOVE $file TO $1bin " ;
        fi ;

    fi ; } 
      done
 echo "... end of $x"
done;

2011. szeptember 17., szombat

Batch image resize and watermarking shell script

#!/bin/bash

WATERMARK="watermark700.png"
resize=2000

#Choices include: NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast.
WATERMARKPOS=SouthEast

OPACITY=60
QUALITY=85

DIR="."

# "*****************************************"
# "* Image Resize and Watermarking Script  *"
# "*         By Krutant.com                *"
# "*        With some tweaks...            *"
# "*****************************************"

clear

echo
echo "This script will OVERWRITE the source files, so work on a copy!"
echo

if [ $# -eq 1 ]
then

    #-----if there is a parameter----
    DIR="$1"
    echo "Target directory: $DIR"

    else

    echo -n "No parameter, current directory is: "
    pwd
    echo

fi


read -p "Watermark with file \""$WATERMARK"\" & resize all images to width "$resize"? (y/n)  " prompt

if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]

then

 echo ""

 shopt -s nullglob


 for each in $DIR/*{.jpg,.jpeg,.JPG,.JPEG}

 do

  echo -n "Working on "$each" ..."

  convert -resize $resize "$each" "$each" >> /dev/null

  composite -gravity $WATERMARKPOS -quality $QUALITY -dissolve $OPACITY $WATERMARK "$each" "$each" >> /dev/null

  echo "[Done]"

 done


# ---

  echo ""

  read -p "Press Enter to exit ..."

else

 exit 0

fi