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

Update image_preview.go #367

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Update image_preview.go #367

merged 3 commits into from
Sep 11, 2024

Conversation

JassonCordones
Copy link
Contributor

  • Added Error handling in hexToColor function.
  • The ConvertImageToANSI function now uses colorToTermenv for all color conversions.
  • Simplified the background color handling in ConvertImageToANSI.
  • colorToTermenv function now takes a fallback color string, making it more flexible.
  • Added error checking for the background color in ImagePreview.

- Added Error handling in hexToColor function.
- The ConvertImageToANSI function now uses colorToTermenv for all color conversions.
- Simplified the background color handling in ConvertImageToANSI.
- colorToTermenv function now takes a fallback color string, making it more flexible.
- Added error checking for the background color in ImagePreview.
Copy link

netlify bot commented Sep 9, 2024

Deploy Preview for superfile ready!

Name Link
🔨 Latest commit 0361e02
🔍 Latest deploy log https://app.netlify.com/sites/superfile/deploys/66e142bafb018e0007d5fe59
😎 Deploy Preview https://deploy-preview-367--superfile.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yorukot
Copy link
Owner

yorukot commented Sep 9, 2024

Hey, thanks a lot for your PR, really appreciate your contribution! 🙏 However, I noticed an issue after reviewing the updated version.

In the new version (on the right), it seems like the background of the PNG file is no longer transparent, which affects the visual appearance of the image.

image

Fix transparent background in images
@JassonCordones
Copy link
Contributor Author

I just pushed a fix, please check

@yorukot
Copy link
Owner

yorukot commented Sep 11, 2024

I've committed some changes to address the issue. Could you please review them and let me know if everything looks good to you?

Copy link
Contributor Author

@JassonCordones JassonCordones left a comment

Choose a reason for hiding this comment

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

LGTM.

@yorukot yorukot merged commit 00abe49 into yorukot:main Sep 11, 2024
4 checks passed
@JassonCordones JassonCordones deleted the patch-1 branch September 11, 2024 08:44
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.

2 participants