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

[FHIR Road Map]: Implement Attachment resizing on uploads #1483

Open
4 tasks
dubdabasoduba opened this issue Oct 8, 2024 · 2 comments
Open
4 tasks

[FHIR Road Map]: Implement Attachment resizing on uploads #1483

dubdabasoduba opened this issue Oct 8, 2024 · 2 comments
Labels
Discussion Enhancement New feature or request EUSM

Comments

@dubdabasoduba
Copy link
Member

dubdabasoduba commented Oct 8, 2024

Issue Context?

  • We currently, allow users to upload images for products on the Commodity Management module.
  • These images are then converted to Binary resources which can then be served on the mobile app.
  • We would like to add functionality to reduce the image sizes before converting them to Binary resources.

Issue Implementation details?

  • Resize all attachments before converting them to Binary Resources
  • Add a maximum attachment size for all the attachments

Issue Acceptance criteria?

  • Attachment sizes should be reduced before converting them to Binary resources
  • The maximum size should be enforced at all times

FHIR resources to be used?

No response

Relevant Information

  • This documentation here shows how much the size can be reduced if we convert the images to .webp versions
  • Read more about Webp
@AnnieMungai
Copy link
Collaborator

AnnieMungai commented Oct 18, 2024

@dubdabasoduba I think this is a good idea.
Q: will this reduce the size even when loading on the app but maintain clarity of the photos? Any performance impacts?

@dubdabasoduba
Copy link
Member Author

@AnnieMungai We will be trying to find a lossless way to reduce the image sizes. If this doesn't work then we will be a strategy that doesn't lose a lot of data

@dubdabasoduba dubdabasoduba changed the title [FHIR Road Map]: Implement Image resizing on Image uploads [FHIR Road Map]: Implement Attachment resizing on uploads Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Enhancement New feature or request EUSM
Projects
Status: To do
Development

No branches or pull requests

2 participants