TECHIES WORLD

For Techs.... Techniques.... Technologies....

Linux

How to resize Gif images

The Graphics Interchange Format (better known by its acronym GIF /dʒɪf/ JIF or /ɡɪf/ GHIF) is a bitmap image format that was developed by a team at the bulletin board service (BBS).

Some times its necessary to resize the gif image for different pruposes. We can use either of the below methods to resize the gif image.

1. Using Convert command

 Step1: Install the package

 #apt-get install imagemagick

 Step2: Resize the image

#convert -size [orig-size-of-input-gif] original.gif -resize [target-size] resized.gif

Example: convert -size 200x200 original.gif -resize 50x50 resized.gif

2. Using Gifsicle utility

Step1: Install the package

#apt-get install gifsicle

 Step2: Resize the image

#gifsicle original.gif --resize [target-size] > resized.gif

Example: gifsicle original.gif --resize 50x50 > resized.gif

 

Leave a Reply