Author Topic: How do I execute this program? (Terminal)  (Read 1125 times)

0 Members and 1 Guest are viewing this topic.

Offline GatoNinja

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
How do I execute this program? (Terminal)
« on: February 12, 2019, 05:42:28 pm »
Hello everyone, I'm new to Linux, especially in its command terminal.

Often, I must optimize animated GIFs. The algorithm that I use is that of LossyGIF (source: https://kornel.ski/lossygif ), but since I do not know how to program, I always had to use a web to run this algorithm (this: https://ezgif.com/optimize ).  :D

However, this website has a great limitation: the maximum size is 35 Mb per file. Recently I have been working with heavier files, including files that can reach 250 Mb.  :-\

I've been researching ways to run this algorithm, and from what I could find, this runs on a Linux's terminal (which would be the equivalent of Windows' Command Prompt). Since I have never used Linux, I researched the way to use its terminal from Windows, and I installed a software called Cygwin Terminal (source: https://www.cygwin.com/ ).  :D

It is at this point that I do not know what to do.  :'(

The author of this algorithm housed his work on GitHub (his download is legal):
https://github.com/kornelski/giflossy
https://github.com/kornelski/giflossy/releases/tag/lossy%2F1.82.1

I downloaded the files, but I do not know what to do with them. I was looking for tutorials, but none of them could help me.

I need to use this algorithm to optimize heavy GIFs from my computer, and thus not depend on EZGif.

On the other hand, maybe I've been doing something wrong, so:

1º Is it a good idea to use Cygwin Terminal?
2º Or should I use Linux directly? Which version of Linux? Is it a good idea to run it from a virtual machine?

Let's see, do the test: download that algorithm and run it on your computers. If it worked for you, tell me how you did it.

Here is an animated GIF test and its corresponding optimization (compression level: 200):
Original:

Optimized:

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 18098
  • Karma: 468
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: How do I execute this program? (Terminal)
« Reply #1 on: February 12, 2019, 10:53:00 pm »
I can tell you how to install it in Linux .. not so much Windows.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline GatoNinja

  • Jr. Member
  • **
  • Posts: 2
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: How do I execute this program? (Terminal)
« Reply #2 on: February 13, 2019, 04:03:25 pm »
I can tell you how to install it in Linux .. not so much Windows.

Tell me how to do it, your answer could be useful.

Offline nour

  • Jr. Member
  • **
  • Posts: 4
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: How do I execute this program? (Terminal)
« Reply #3 on: February 27, 2019, 10:41:19 am »

I downloaded the files, but I do not know what to do with them. I was looking for tutorials Tutuapp 9apps Showbox, but none of them could help me.

I need to use this algorithm to optimize heavy GIFs from my computer, and thus not depend on EZGif.

On the other hand, maybe I've been doing something wrong, so:

1º Is it a good idea to use Cygwin Terminal?
2º Or should I use Linux directly? Which version of Linux? Is it a good idea to run it from a virtual machine?

Let's see, do the test: download that algorithm and run it on your computers. If it worked for you, tell me how you did it.

Here is an animated GIF test and its corresponding optimization (compression level: 200):


Hi,
I think there's o file called win "somthing" config, so may be the code can't be compiled under Linux. But I'm not sure about it.
Get an IDE (Code::Blocks per example) and try to import the project, it has all the necessary files. Than compile it to get your .exe file.
« Last Edit: March 02, 2019, 08:20:52 pm by nour »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal