vvo / gifify

😻 Convert any video file to an optimized animated GIF.
ISC License
6.18k stars 313 forks source link

Error: convert needs fontconfig #29

Open samtgarson opened 8 years ago

samtgarson commented 8 years ago

Hey there.

I'm trying to convert using the following command:

gifify tide\ 1_.mov -o tide_backend.gif --resize '900:-1' 

however I get the following error without anything else:

convert needs fontconfig

Any help please? Cheers

wesbos commented 8 years ago

I got this too - even when I had all the dependencies installed.

I just opened the file and removed the need for these deps because I don't need captions

https://github.com/vvo/gifify/blob/master/bin/gifify#L92-L93

samtgarson commented 8 years ago

Works for me, thanks.

joemccann commented 8 years ago

Still an issue without @wesbos's change, right?

wesbos commented 8 years ago

Yeah - this should be changed in the source. It should only check for libass and fontconfig if the thing we are doing requires those things - basic mp4→gif doesn't need them

vvo commented 8 years ago

Open a PR, I will merge and release

vvo commented 8 years ago

cc @joemccann @wesbos

ispal commented 8 years ago

I had this issue, but in my case I had MAMP on my machine which included Imagemagick with different settings. It defaulted to MAMP's version of the library without fontconfig because I had MAMP's bin folder in $PATH before /usr/local in .zshrc. So, check your settings if you are experiencing this issue.

timarney commented 7 years ago

MAMP was my issue as well.

skovmand commented 7 years ago

Also got this problem. Frustrating.

vvo commented 7 years ago

One way to solve this @skovmand would be to be not that picky about requirements and let error propagates when the user actually tries to use such flag like captions: https://github.com/vvo/gifify/blob/master/bin/gifify#L92-L93

Open to a PR solving this all

skovmand commented 7 years ago

Thanks. Sorry, I forgot to respond, but I solved the problem by following the instructions on the front page, installing all dependencies in Homebrew with the flags specified.

ahmadawais commented 7 years ago

Simply uninstall all the dependencies and reinstall them as stated in the readme.md file :)

sitexa commented 6 years ago

Same problem encounter today.

maxp-edcast commented 6 years ago

uninnstallinng imagemagi ck and reinstallingn with the flag did not fix this issue.

kahlilashanti commented 5 years ago

installing per the documentation with flags did not solve it for me. any updates? thanks!

ericat commented 5 years ago

Same, I get:

Warning: ffmpeg: this formula has no --with-fontconfigg option so it will be ignored!