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

fix usage #723

Merged
merged 2 commits into from
Oct 23, 2021
Merged

fix usage #723

merged 2 commits into from
Oct 23, 2021

Conversation

ckuethe
Copy link
Collaborator

@ckuethe ckuethe commented Oct 22, 2021

fixes #722

Copy link
Collaborator

@EricClaeys EricClaeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chris, I just added a comment to the Issue about getting a CV error when the output file name doesn't have an extension, e.g., "xxx" versus "xxx.jpg". I just accidently did this.
I suggest having the code check for an extension.

Is the -S option mutually exclusive of the -o and -b options, or can you have all 3? The "|" implies you can't.

@EricClaeys
Copy link
Collaborator

Chris, I also just noticed I get the line about "Minimum..." if I HAVE -S and if I do NOT HAVE -S. Is that correct?

@ckuethe
Copy link
Collaborator Author

ckuethe commented Oct 22, 2021

What does the code/help screen say -S does? "print image directory statistics without producing image."

https://github.com/thomasjacquin/allsky/blob/master/src/startrails.cpp#L214
https://github.com/thomasjacquin/allsky/blob/master/src/startrails.cpp#L282
https://github.com/thomasjacquin/allsky/blob/master/src/startrails.cpp#L327
https://github.com/thomasjacquin/allsky/blob/master/src/startrails.cpp#L395

Startrails has always emitted that statistics line, which is desirable for tuning the startrails brightness limit.

Copy link
Collaborator

@EricClaeys EricClaeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason startrails output needs to be limited to .jpg and .png? I just ran it with "-o test.bmp" and it created a .bmp file.

@ckuethe
Copy link
Collaborator Author

ckuethe commented Oct 23, 2021

I'm going with "don't overcomplicate things." PNG and JPG are by far the most common.

@EricClaeys EricClaeys merged commit 9021720 into AllskyTeam:master Oct 23, 2021
std::transform(extcheck.begin(), extcheck.end(), extcheck.begin(),
[](unsigned char c) { return std::tolower(c); });

if (extcheck.rfind(".png") == string::npos ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Condition here should be && as the file usually doesn't have both .png and .jpg in it :)

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

Successfully merging this pull request may close these issues.

startrails.cpp: usage wrong
4 participants