makew0rld / didder

An extensive, fast, and accurate command-line image dithering tool.
GNU General Public License v3.0
366 stars 10 forks source link

Stuck on 'required flags "palette, out, in" not set.' #8

Closed Kneecrust closed 2 years ago

Kneecrust commented 2 years ago

Hi!

I'm sorry if this is not the right way to reach out. Couldn't find any info on this in the docs sadly.

I'm not able to get didder to do anything with any image. It keeps giving me back the line from the title. 'required flags "palette, out, in" not set.'

Any tips on how to get past this? Added the didder.exe to my PATH as specified, so it shouldn't be that.

Thanks!

makew0rld commented 2 years ago

Hello! It sounds like you are not setting the required flags for didder to work. Please see the manual.

When running didder, you must specify the --palette, --in, and --out flags, or their short versions. For example:

didder -i david.png -o david_dithered.png --palette 'black white' bayer 4x4
Kneecrust commented 2 years ago

Hi! Strangely on the docs I found that palette came before -i and -o. Now switching them around at least there’s some progress. Thanks! Now it’s stating that the colors I input are not recognised.   Any notion of why it does not recognise them? Thanks in advance!

Kneecrust commented 2 years ago

Seem to have solved the color issue by switching to Hex and using "double quotes" over 'single quotes'.

makew0rld commented 2 years ago

Strangely on the docs I found that palette came before -i and -o. Now switching them around at least there’s some progress.

Strange, the order shouldn't matter.

Now it’s stating that the colors I input are not recognised.
Any notion of why it does not recognise them?

If you want help in the future you have to paste the command you ran here, otherwise I can't tell you what the issue is. Anyway glad it works now.

makew0rld commented 2 years ago

I'll close this for now, let me know if you still have any issues.

SHiLLySiT commented 2 years ago

@makeworld-the-better-one I'm also seeing the same error with the example command from the README when running on Windows 10: didder --palette 'black white' -i input.jpg -o test.png bayer 16x16

As per @Kneecrust 's suggestion, changing the single quotes to double quotes fixed the issue: didder --palette "black white" -i input.jpg -o test.png bayer 16x16

makew0rld commented 2 years ago

@SHiLLySiT thanks for reporting as well. Must be some Windows terminal issue. I switched to using double quotes in d583a29.