GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JacksonBey/Image-Upload-Widget: Image Upload Widget

BranchesTags
Open more actions menu

Latest commit

 

History

99 Commits
99 Commits

Folders and files

NameName
Last commit message
Last commit date
php
php
 
 
uploader-example-code
uploader-example-code
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
README.md
README.md
 
 
cropper.css
cropper.css
 
 
index.html
index.html
 
 
index.js
index.js
 
 
php-10.18.zip
php-10.18.zip
 
 

Repository files navigation

JavaScript / jQuery Image Upload Widget

Table of Contents

  1. Overview
  2. Features
  3. Prerequisites
  4. Installation
  5. Usage
  6. Configuration
  7. Security
  8. Supported File Types
  9. Contributing
  10. License
  11. Contact

Overview

This JavaScript / jQuery Image Upload Widget is a versatile, fully-featured image uploader designed for integration into custom PHP websites. It supports a range of functionalities from drag-and-drop uploads to image cropping and rotation.

Features

  • Drag-and-drop upload
  • Multiple image uploads
  • Image thumbnails
  • In-browser image rotation and cropping
  • Customizable through JavaScript variables
  • Light and Dark modes
  • Responsive design

Prerequisites

  • PHP 7.x or higher
  • A web server (e.g., Apache, Nginx)

Installation

  1. Download the /php directory from the project repository.
  2. Place it in your web server's root directory or a subdirectory.
  3. Ensure that the server has write permissions to the downloads/ folder for image storage.

Usage

Include the main widget rendering function in your PHP code:

```php include 'path/to/render_image_widget.php'; ```

Invoke the widget by calling the function render_image_widget($config):

```php $config = [ // Your configuration parameters here ]; render_image_widget($config); ```

php -S localhost:8000

Configuration

The widget accepts an associative array of configuration parameters:

  • max_width: Maximum image width (default is 800)
  • max_height: Maximum image height (default is 600)
  • min_width: Minimum image width (default is 100)
  • min_height: Minimum image height (default is 100)
  • max_photos: Maximum number of photos (default is 10)
  • file_path: File path to save the images (default is 'downloads/')
  • theme: image color scheme. 'light' or 'dark' (default is 'light')

Security

The widget only allows uploading of specified file types. For additional security, consider implementing server-side validation.

Supported File Types

  • jpeg
  • jpg
  • png
  • gif
  • heic

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contact

For any queries, feel free to contact Jackson Beytebiere.

About

Image Upload Widget

Resources

Readme

Contributing

Contributing
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.