sanika391 / SpoonShare

SpoonShare: An app connecting users to share free food, donate, and access local ngo, supporting the UN's Zero Hunger goal.
https://spoonshare-meal.web.app
MIT License
44 stars 59 forks source link

Implement Photo Evaluation Feature for SpoonShare App, issue no #90 #91

Closed igopi77 closed 1 month ago

igopi77 commented 1 month ago

Description:

This pull request implements a photo evaluation feature for the "Share Free Food," "Donate Food," and "Recycle Food" pages in the SpoonShare app. The purpose of this feature is to ensure that photos of food, when uploaded from the gallery, are taken within the last 30-40 minutes to maintain freshness and relevance.

issue : #90

Implementation Approach:

In Flutter, the EXIF package is used to extract the timestamp metadata from the uploaded photos to evaluate their recency.

Changes Made:

  1. EXIF Metadata Extraction:
  1. User Feedback:
  1. Camera Photo Upload Restriction:

Expected Behavior:

  1. Users can upload photos of food in the "Share Free Food," "Donate Food," and "Recycle Food" pages.
  2. The app evaluates the timestamp of the photos uploaded from the gallery.
  3. Only photos taken within the last 30-40 minutes are accepted for upload.
  4. Users receive a clear notification if their photo does not meet the criteria, prompting them to take a new photo or select a recent one.
  5. Photos can only be uploaded if taken directly from the camera.

Video sample :

https://github.com/sanika391/SpoonShare/assets/123234840/33c68736-e941-4796-a777-78c8beb27b5e

Thank you mam.

github-actions[bot] commented 1 month ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

sanika391 commented 1 month ago

Here's a more detailed comment:


Thank you for your contribution, @igopi77! The implementation of the photo evaluation feature is a fantastic addition to the SpoonShare app. Your work ensures that users can only upload recent photos, enhancing the reliability and relevance of the content. This feature will significantly improve the user experience by maintaining the freshness and quality of the shared, donated, and recycled food photos.

I appreciate your meticulous work on utilizing the EXIF package to extract and evaluate photo timestamps, as well as your efforts to provide clear user feedback and enforce camera-only uploads. Your contribution is invaluable, and we look forward to seeing more innovative features from you in the future.

Regards, Sanika Chavan [https://www.linkedin.com/in/sanika-chavan-52457b236]

igopi77 commented 1 month ago

@sanika391 Thank you mam