install GifCam with upload to imgur [Debian 64bit]

example:
GIF

download and unzip the program:
mkdir .gifcam
cd ./.gifcam
wget http://www.bahraniapps.com/apps/gifcam/GifCam.zip
wget http://blog.bahraniapps.com/wp-content/uploads/2013/03/gifcamicon.png
unzip GifCam.zip
rm GifCam.zip

install wine:
sudo apt-get install wine -y

test the program:
wine GifCam.exe

create a start entry:
cd /usr/share/applications/
sudo nano GifCam.desktop

[Desktop Entry]
Name=GifCam
Comment=
Exec=wine /home/xxUserxx/.gifcam/GifCam.exe
Icon=/home/xxUserxx/.gifcam/gifcamicon.png
Terminal=false
Type=Applicationsed -i "s|xsel --clipboard|xsel --input --clipboard|g" ~/.Imgur-Uploader/imgur
Categories=Graphics;

use the correct username in starter:
cd /usr/share/applications/
sudo sed -i 's/xxUserxx/'$USER'/' GifCam.desktop

to remove it:
cd
rm -r .gifcam
sudo rm /usr/share/applications/GifCam.desktop

it is possible to upload the images to imgur.com:
cd
git clone https://github.com/tangphillip/Imgur-Uploader.git .Imgur-Uploader

to upload the image from commmandline and delete it after upload:
(you get the image url as output in commandline)
$HOME/.Imgur-Uploader/imgur $HOME/Schreibtisch/*.gif && rm $HOME/Schreibtisch/GIF.gif

or use my script(you have to install the one before cause this is only a gui for the one before):
touch ~/.Imgur-Uploader/upload_pic_gui
chmod +x ~/.Imgur-Uploader/upload_pic_gui
nano ~/.Imgur-Uploader/upload_pic_gui

#!/bin/bash

#chmod 777 COPYING
# You must place file "COPYING" in same folder of this script.
FILE=`dirname $0`/COPYING

function upload_pic {
	echo "!!!your picture link is already copied to your clipboard!!!">$FILE 
    ~/.Imgur-Uploader/imgur ~/Schreibtisch/GIF.gif >> ~/.Imgur-Uploader/COPYING 2>&1
}

upload_pic

rm ~/Schreibtisch/*.gif

zenity --text-info \
       --title="here are your links" \
       --filename=$FILE \
       --checkbox="open_del_link_in_browser"

case $? in
    0)
		sed -i "s|Delete page: ||g" ~/.Imgur-Uploader/COPYING
		x-www-browser $(tail -1 ~/.Imgur-Uploader/COPYING) &
	# next step
	;;
    1)
        echo "nothing done."
	;;
    -1)
        echo "An unexpected error has occurred."
	;;
esac

create a start entry for the GifUploader:
cd ~/.Imgur-Uploader/
wget https://github.com/encharm/Font-Awesome-SVG-PNG/raw/master/black/svg/cloud-upload.svg
cd /usr/share/applications/
sudo nano GifUploader.desktop

[Desktop Entry]
Name=GifUploader
Comment=upload gifs to imgur
Exec=/home/xxUserxx/.Imgur-Uploader/upload_pic_gui
Icon=/home/xxUserxx/.Imgur-Uploader/cloud-upload.svg
Terminal=false
Type=Application
Categories=Graphics;

use the correct username in starter:
cd /usr/share/applications/
sudo sed -i 's/xxUserxx/'$USER'/' GifUploader.desktop

maybe also try licecap: #screen gif recorder
https://fredfire1.wordpress.com/2016/04/01/install-licecap-debian-64bit/
http://makeagif.com/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s