fariasmateuss / favicon-generator

Bash Script to generate favicons in multiple sizes (.ico and .png)
GNU General Public License v3.0
16 stars 1 forks source link

Invalid Parameter #2

Open nekooee opened 1 year ago

nekooee commented 1 year ago

I get this error:

$ ./favicon.sh logo.png -x
Generating square base image 
Invalid Parameter - -resize
Generating favicons 
Invalid Parameter - -resize
Invalid Parameter - -resize
Invalid Parameter - -resize
Invalid Parameter - -resize
Invalid Parameter - -resize
Invalid Parameter - -resize
Generating ico
Invalid Parameter - logo-32x32.png
Generating touch icons 
Invalid Parameter - -resize
Invalid Parameter - -resize
Invalid Parameter - -resize
Create html tags in favicons.txt 

I run it in Windows with git bash

skippyr commented 1 year ago

Hello, @nekooee. I am not the owner of this project, but found out this post on Stack Overflow that can help you out. Apparently, there is already a command on Windows called convert, which makes it use the incorrect command.

According to the answers in the post, all calls to the ImageMagick convert, on Windows, should use the magick argument at their start. I do not know if it will work, but you can try to use an alias for it before using the script to see if it fixes it:

alias convert="magick convert"