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

Automatic render-style selection #37

Merged
merged 6 commits into from
May 5, 2022
Merged

Automatic render-style selection #37

merged 6 commits into from
May 5, 2022

Conversation

AnonymouX47
Copy link
Owner

@AnonymouX47 AnonymouX47 commented May 5, 2022

In line with #23

  • Adds convenience functions for creating image instances, which select the best fitting render style based on the detected terminal support.
    • AutoImage(), from_file() and from_url() in term_image.image.
  • Adds CLI option --style to specify the render style to use.

- Add: Added convinience functions for creating new image instances with auto terminal support detection.
- Add: Added `AutoImage()`, `from_file()` and `from_url()` in `.image`.
@AnonymouX47 AnonymouX47 added documentation Improvements or additions to documentation enhancement New feature / Improvement suggestion or request lib Related to the library (Not to be used anymore) cli Related to the image viewer's CLI (Not to be used anymore) tui Related to the image viewer's TUI (Not to be used anymore) labels May 5, 2022
@AnonymouX47 AnonymouX47 added this to the 0.4.0 milestone May 5, 2022
- Add: Added `tests.test_others`.
- Change: Updated make targets.
- Add: Added a section for "Convinience Functions".
@AnonymouX47 AnonymouX47 changed the title Automatic render-style support detection Automatic render-style selection May 5, 2022
- Add: Added `--style` CL option for render style selection.
- Add: Added automatic render style selection to the CLI and TUI.
- Change: Updated CLI help text.
Conflicts:
	CHANGELOG.md
@AnonymouX47 AnonymouX47 merged commit 512d5c0 into main May 5, 2022
@AnonymouX47 AnonymouX47 deleted the auto-render-style branch May 5, 2022 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the image viewer's CLI (Not to be used anymore) documentation Improvements or additions to documentation enhancement New feature / Improvement suggestion or request lib Related to the library (Not to be used anymore) tui Related to the image viewer's TUI (Not to be used anymore)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant