Posted 22 Hours Ago Job ID: 2101371 29 quotes received

Modal Image Library with PHP/MySQL

Fixed Price or Hourly
Quotes (29)  ·  Premium Quotes (1)  ·  Invited (0)  ·  Hired (0)

  Send before: March 10, 2025

Send a Quote

Programming & Development Programming & Software

PHP and Intervention Image (https://image.intervention.io/v3)

1 Main Page - Image Selection Button:

On the main page, place a prominent button labeled "Select Image" to initiate the process.

2 Modal Window - Image Library and Upload Option:

Upon clicking the button, a modal window opens displaying the user's Image Library.

Image Library:

   Show thumbnails of images the user has previously uploaded.

   Allow scrolling or pagination if there are many images.

Upload New Image Option:

   Include an option like "Upload New Image" within the modal.

   When selected, the user can browse their device to choose a new image.

Image Processing:

   Use the Intervention Image library to handle the uploaded image.

   Convert the image to WEBP format for better compression and performance.

   Add the new image to the Image Library so it's immediately available.

3 Image Selection and Modal Closure:

The user selects an image from the library or after uploading a new one.

The modal window closes automatically after selection.

The selected image is displayed on the main page, providing immediate visual feedback.

4 Database Storage with MySQL:

Store the following details using PDO for secure database interactions:

ID: A unique identifier for the image (e.g., auto-incremented primary key).

Image in BLOB field: The image is stored.

Image Size:  (3 fields) file size in bytes, width and height

5 Additional Considerations:

Asynchronous Processing:

   Implement AJAX calls for uploading and retrieving images to enhance user experience without full page reloads.

User Feedback:

   Provide progress indicators during upload and conversion processes.

Error Handling:

   Inform the user of any issues, such as unsupported file types or upload failures.

 

[Main Page]

    |

    v

[Click "Select Image" Button]

    |

    v

[Modal Window Opens]

    |                  \

    v                   v

[Display Image Library]   [Upload New Image]

    |                      |

    |                  [Process and Convert Image]

    |                      |

    |                [Add to Image Library]

     \                    /

      v                  v

  [Select Image from Library]

            |

            v

  [Modal Window Closes]

            |

            v

  [Display Selected Image on Main Page]

            |

            v

  [Store Image Data in MySQL Database]

 

... Show more
Bruno J Mexico