elid00
Posts: 6
Joined: Wed Sep 28, 2016 9:14 pm

Giflossy install raspberry pi

Mon Feb 27, 2017 2:29 pm

Hi There,

Has anyone installed successfully the lossy option for gifsicle from https://github.com/pornel/giflossy/
When I tried to install this version
https://github.com/pornel/giflossy/rele ... y%2F1.82.1
in /usr/local/bin I got an error

User avatar
topguy
Posts: 6526
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Giflossy install raspberry pi

Tue Feb 28, 2017 12:49 pm

What error ? That is the question...

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Giflossy install raspberry pi

Tue Feb 28, 2017 1:03 pm

[Crystal Ball flickers faintly... ]

Does the account you are using to perform the installation have permission to create files in /usr/local/bin ?

Or alternatively, the author writes:
Please write me if you have trouble building or running Gifsicle, or if you have suggestions or patches.

elid00
Posts: 6
Joined: Wed Sep 28, 2016 9:14 pm

Re: Giflossy install raspberry pi [solved]

Tue Feb 28, 2017 1:18 pm

Found it!
I needed to compile giflossy from source to get the --lossy option but was missing the build tools libraries

I also needed some ffmpeg video codecs
I did :

Code: Select all

sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev   libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev   libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
Get files form giflossy

Code: Select all

git clone https://github.com/pornel/giflossy.git

Code: Select all

cd giflossy
autoreconf -i

Code: Select all

./configure
make
make install
It works perfectly now, I was able to optimize the gifs from gifsicle from 1.4 Mb to 500k

Thanks.

Return to “Troubleshooting”