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

A different Javascript novice with no idea what is going wrong #18

Open
SuperiorSamWise opened this issue Sep 7, 2023 · 2 comments
Open

Comments

@SuperiorSamWise
Copy link

This is basically the first time I've used the command line, so this issue is almost definitely my fault. I think I've installed pictoprime and its dependencies properly but when I run it to try and get a prime for the Matt headshot (or any other image) it doesn't look like the image and isn't all in digits. I have tried using pictoprime --pixels '7772299408' (with different ',", and without) but it only returns
Error: Either a number or an image must be specified.
at main (file:///C:/Users/Lenovo%20X1%20Carbon/AppData/Roaming/npm/node_modules/pictoprime/index.js:38:50)

If anyone can help or point me to where I can look/ learn how to work this out for myself that would be greatly appreciated.

image
image

@SuperiorSamWise
Copy link
Author

I have also tried messing with the dimensions of the 'prime' to see if it looks like Matt at different widths but it does not. (only by changing the shape of a txt file I've pasted it into not by changing the width of the generated prime)

@SuperiorSamWise
Copy link
Author

I've figured out what is happening but not really why. It's kind of obvious in hindsight but it is returning the correct picturesque prime just in Hex for some reason. I don't know how to fix this so the output is right but it's simple enough to convert it after.

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