idesis-gmbh / png2icons

Create Apple ICNS and Microsoft ICO files from PNG
MIT License
108 stars 10 forks source link

Linux release binary doesn't work. #9

Closed malespiaut closed 6 months ago

malespiaut commented 7 months ago

Hello,

I'm trying to run the Linux release binary on Arch Linux, and, whatever the CLI arguments I put, I always end up with the help being displayed.

> ./png2icons screenshot.png app -icns -icowe -bc
usage: png2icons-cli infile outfile format [-nn | - bl | -bc | -bz | -hm] [-i]

Don't append a file extension to outfile, it will be set automatically.

format    (output format):
  -icns   Apple ICNS format, creates <outfile>.icns
  -ico    Windows ICO format, creates <outfile>.ico (contained icons as BMP)
  -icop   Windows ICO format, creates <outfile>.ico (contained icons as PNG)
  -icowe  Windows ICO format, creates <outfile>.ico  (for Windows executables)
  -all    Create both ICNS and ICO format (ICO with BMP)
  -allp   Create both ICNS and ICO format (ICO with PNG)
  -allwe  Create both ICNS and ICO format (ICO for Windows executables)

Scaling algorithms:
  -nn (Nearest Neighbor)
  -bl (Bilinear)
  -bc (Bicubic, default)
  -bz (Bezier)
  -hm (Hermite)
  -bc2 (Bicubic, alternative faster version)

-i  print messages

Best regards.

mn4367 commented 7 months ago

I'll take a look.

mn4367 commented 7 months ago

Strange, the same happens on Ubuntu 22. Thanks for reporting this, I'll investigate.

mn4367 commented 7 months ago

Ahh, now I see, you can't use -icns and -icowe together. If you want to create icns and ico you have to use -allwe (or -all, -allp).

Can you confirm that this works?