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

'iterm2' render style improvements #55

Merged
merged 17 commits into from Jun 23, 2022
Merged

'iterm2' render style improvements #55

merged 17 commits into from Jun 23, 2022

Conversation

AnonymouX47
Copy link
Owner

@AnonymouX47 AnonymouX47 commented Jun 19, 2022

Closes #48

  • Makes 'iterm2' style optimizations optional.
    • JPEG encoding.
    • Reading directly from file.
  • Adds JPEG_QUALITY and READ_FROM_FILE attributes to ITerm2Image.
    • JPEG encoding quality can now be set.
  • Adds --itjq/--iterm2-jpeg-quality and --itnrff/iterm2-no-read-from-file style-specific CL options.
  • Adds 'iterm2' compress style arg and style-specific format spec field.
  • Adds --itc/--iterm2-compress CL option.
  • Fixes ITerm2Image.is_supported(), no longer returns None.
  • Completes tests for the 'iterm2' render style.

- Add: Added `JPEG_QUALITY` and `READ_FROM_FILE` attributes to `ITerm2Image`.
  - JPEG encoding quality can be set.
- Change: JPEG encoding is now optional.
  - Disabled by default.
- Change: Reading directly from file is now optional.
  - Enabled by default.
@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) labels Jun 19, 2022
@AnonymouX47 AnonymouX47 added this to the 0.4.0 milestone Jun 19, 2022
@AnonymouX47 AnonymouX47 added the iterm2 Related to the 'iterm2' render style label Jun 19, 2022
- Add: Added `--itjq/--iterm2-jpeg-quality` and `--itnrff/iterm2-no-read-from-file` style-specific CL options.
- Add: Added footnotes for the new options.
- Add: Added `compress` style arg.
- Add: Added *compress* parameter to `ITerm2Image.draw()`.
- Add: Added style-specific format field for `compress` style arg.
- Add: Updated docstrings.
- Fix: Corrected typo in `--iterm2-jpeg-quality` footnote.
- Add: Added `--itc/--iterm2-compress` CL option.
- Add: Included `compress` field in the 'iterm2' style-specific format spec for the TUI.
- Fix: `ITerm2Image.is_supported()` no longer returns `None`.
@AnonymouX47 AnonymouX47 added the test Related to the test suite label Jun 21, 2022
- Add: Added tests for the READ_FROM_FILE optimization of the 'iterm2' render style.
- Change: Updated `decode_image()`.
- Change: Removed redundant code.
- Add: Added tests for 'iterm2' render style JPEG format optimization.
- Change: Updated image size tests.
- Change: Removed redundant code.
@AnonymouX47 AnonymouX47 force-pushed the iterm2-updates branch 2 times, most recently from 43b2c2b to 6fa8131 Compare June 22, 2022 20:38
- Fix: Fixed native animation of PIL-image-sourced images.
  - Now correctly detects if an image file is accessible.
- Add: Added tests for native animation.
- Add: Added 'test/images/elephant.png'.
@AnonymouX47 AnonymouX47 merged commit b3fcffc into main Jun 23, 2022
@AnonymouX47 AnonymouX47 mentioned this pull request Jun 23, 2022
11 tasks
@AnonymouX47 AnonymouX47 deleted the iterm2-updates branch June 23, 2022 18:40
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 iterm2 Related to the 'iterm2' render style lib Related to the library (Not to be used anymore) test Related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iTerm2 image protocol support
1 participant