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

Save images in JPEG format locally for better CLI compatibility #17

Merged

Conversation

remote-swe-user
Copy link
Contributor

@remote-swe-user remote-swe-user commented Apr 4, 2025

Description

This PR fixes issue #16 by changing the image format from webp to JPEG when saving images locally.

Changes

  • Modified the saveImageToLocalFs function to convert webp images to JPEG format before saving
  • WebP format is still used in the postProcessMessageContent function for efficiency
  • Changed file extension from 'webp' to 'jpeg'

This change improves compatibility with various CLI tools that may not handle webp files as easily as JPEG.

closes #16

@tmokmss tmokmss merged commit 0fa8a79 into aws-samples:main Apr 4, 2025
3 checks passed
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.

save image as jpeg in local file system
2 participants