Skip to content

Conversation

@trackd
Copy link
Owner

@trackd trackd commented Jun 25, 2025

Introduce Base64 string support for image input, improve image handling and resizing logic, and update the Sixel module to version 0.5.0. Refactor code for better maintainability and readability, while enhancing compatibility checks for various terminal protocols.

fixes #23

v. 0.5.0

trackd added 11 commits March 22, 2025 15:01
* Implemented handling for Base64 encoded images in `ConvertSixelCmdlet`.
* Added validation to ensure the provided Base64 string is valid.
…port

* Added `InputObject` parameter to accept image data from the pipeline.
* Improved base64 string handling for images.
* Updated `SupportedProtocol` to allow multiple protocols per terminal.
* Refactored `ImageProtocol` to remove flags and simplify usage.
* Enhanced terminal compatibility checks for image protocols.
* Refactored methods for image conversion, including `ConvertGif` and `ConsoleImage`.
* Improved error handling in `ConvertSixelCmdlet` and `ConvertSixelGifCmdlet`.
* Enhanced compatibility checks and updated dependencies.
* Introduced new `SBExtensions` for `StringBuilder` to support `ReadOnlySpan<char>`.
* Renamed `Load` class and cleaned up code for better maintainability.
* Added `<Version></Version>` to project files.
* Enabled more analyzers and fixed all recommendations
- improved protocol handling
- Enhanced image resizing and quantization logic in Resizer.cs.
- Introduced ImageSize struct to encapsulate image dimensions in character cells.
- Improved compatibility checks for terminal support of Sixel and Kitty graphics.
- Refactored SizeHelper methods for better clarity and functionality.
- Updated GIF processing to utilize new resizing logic.
- Updated project dependencies to latest versions.
- minor cleanup
- Improved documentation across various classes, including Compatibility, Constants, ConvertTo, and SizeHelper.
- Refined terminal compatibility checks in TerminalChecker to better identify supported protocols.
- Updated tests to reflect changes in image size handling and protocol support.
- Cleaned up unused code and improved overall code readability and maintainability.
- tinkering with the sizing logic, still a bit broken in vscode and wezterm..
* Added new launch configuration for PowerShell module import.
* Improved documentation for `ConvertTo-Sixel` and `ConvertTo-SixelGif` cmdlets.
* Refactored image resizing logic for better performance and clarity.
* Updated dependencies to latest versions.
* Enhanced error handling and parameter descriptions.
@trackd trackd self-assigned this Jun 25, 2025
@trackd trackd merged commit 1f48ed0 into main Jun 25, 2025
2 checks passed
@trackd trackd deleted the feature/b64 branch July 9, 2025 21:15
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.

ConvertTo-Sixel - Add RawContentStream Alias To -Stream

2 participants