Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample image with instructions in docs #5

Open
tacman opened this issue Mar 25, 2024 · 0 comments
Open

sample image with instructions in docs #5

tacman opened this issue Mar 25, 2024 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Mar 25, 2024

I'm not able to get this to work, can you provide a sample images (png and svg) and command line in the docs please?

curl "https://upload.wikimedia.org/wikipedia/commons/4/4b/Covetrus_Logo.png" -o logo.png
mkdir output
 ./vendor/bin/favicon-generator 'Title of the website' file:logo.png output --theme-color=#00AAAD --icon-background=#00AAAD --root=/
./vendor/bin/favicon-generator 'Title of the website' file:assets/images/books.svg output --theme-color=#00AAAD --icon-background=#00AAAD --root=/
PHP Warning:  file_put_contents(output/apple-touch-icon.png): Failed to open stream: No such file or directory in /home/tac/g/sites/hello/vendor/genkgo/favicon/bin/favicon-generator on line 170
[ERROR] Failed to save output/apple-touch-icon.png
PHP Warning:  proc_open(): posix_spawn() failed: No such file or directory in /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AppleSafariPinGenerator.php on line 33
PHP Warning:  Trying to access array offset on null in /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AppleSafariPinGenerator.php on line 35
PHP Fatal error:  Uncaught TypeError: stream_get_contents(): Argument #1 ($stream) must be of type resource, null given in /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AppleSafariPinGenerator.php:35
Stack trace:
#0 /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AppleSafariPinGenerator.php(35): stream_get_contents()
#1 /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AppleSafariPinGenerator.php(68): Genkgo\Favicon\AppleSafariPinGenerator->Genkgo\Favicon\{closure}()
#2 /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AppleSafariPinGenerator.php(21): Genkgo\Favicon\AppleSafariPinGenerator->tempFile()
#3 /home/tac/g/sites/hello/vendor/genkgo/favicon/src/ApplePackage.php(20): Genkgo\Favicon\AppleSafariPinGenerator->generate()
#4 /home/tac/g/sites/hello/vendor/genkgo/favicon/src/AggregatePackage.php(22): Genkgo\Favicon\ApplePackage->package()
#5 /home/tac/g/sites/hello/vendor/genkgo/favicon/src/FullPackageGenerator.php(16): Genkgo\Favicon\AggregatePackage->package()
#6 /home/tac/g/sites/hello/vendor/genkgo/favicon/bin/favicon-generator(168): Genkgo\Favicon\FullPackageGenerator->package()
#7 /home/tac/g/sites/hello/vendor/genkgo/favicon/bin/favicon-generator(177): {closure}()
#8 /home/tac/g/sites/hello/vendor/bin/favicon-generator(124): include('...')
#9 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant