Install gifify on Windows

So gifify is a pretty awesome script that converts video to gif via the command line: https://github.com/vvo/gifify

I really want this to work on my Windows 10 machine. I am new to windows and relatively new to coding, but I managed to get a few things to work, but ran into a problem.

Here is what I did:

  • Installed node.js + npm
  • Installed FFmpeg using npm
  • Installed ImageMagick with npm (I think I did it wrong, maybe just installed the shell).
  • Download giflossy. It needed to be built (?)
  • Installed Visual Studio 2015, tried to build it with nmake and got this error:
NMAKE : fatal error U1073: don't know how to make 'win32cfg.h' 

The command I use is:

 PS C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin> .\nmake -f "C:\Users\Robert Workstation\.npm-global\node_modules\giflossy-lossy-1.82.1\src\Makefile.w32" 

It would be very helpful to help with this: D

+5
source share
1 answer

I think I did it!

I spent two hours wildly downloading binaries, searched like crazy and added a quantum environment variable to PATH, but I did. Here's how:

  • ffmpeg : http://ffmpeg.zeranoe.com/builds/ . Download the binaries, put them in the Programs folder (or anywhere), copy the path and add it to the PATH environment variable.
  • Gifsickle with losses . I tried to compile the source from GitHub, but both makefiles made a mistake (I did not investigate this further). Instead, I searched the already compiled binary on the Internet (risky) and found: https://encode.ru/threads/2481-How-to-compile-giflossy . You need 7zip to extract the binaries, but as soon as you do this, put them in your program folder, add the path to the binaries in the PATH environment variable and you will set.
  • ImageMagick with conversion: https://www.imagemagick.org/script/download.php#windows Be sure to check the following parameters: enter image description here

    This should add ImageMagick binaries to env vars PATH for you.

Battle any '[x] is not recognized as a blah error with finding a binary file and adding its path to the env PATH variable.

If only the source is available and you need to compile it yourself, search the compiled binary files on the Internet.

0
source

Source: https://habr.com/ru/post/1243712/


All Articles