Skip to content

Implement Location Image Upload Feature #750

@joshi1983

Description

@joshi1983

This issue is a large part of completing #411 but a separate issue seemed helpful because this chunk of work is easily described for a new developer on the project.

The work remaining on this issue includes:

  • Add route and controller method to LocationImageController.php for uploading an image
    • If uploaded image is png, convert to jpg. Convert any transparency to white if there is any.
    • If any dimension(width or height) is greater than 1024px, scale down the image while maintaining the aspect ratio. This is important for keeping the data size under control as many people upload large image from their 8MP or higher cameras.
  • Add an Upload Image to the rating feature's navigation menu.
    • When clicking the Upload Image button, the file selector should appear immediately.
    • After selecting an image, let the user preview it.
  • Test that a successful upload leads to the image showing in the location report's image slideshow.
  • Update FAQ to indicate this new feature works.
    • Update database/seeds/data/faq_item.json regarding the image upload question so it says "Photos from the location can be uploaded while signed in and rating the location."
    • Test the FAQ change by dropping all database tables and running 'php artisan migrate' and 'php artisan db:seed' before visiting the FAQ feature again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions