HTML 5 Upload Image, Ratio with Drag and Drop

Version :

Latest Version
Javascript Framework & Plugins
Javascript Framework & Plugins Original price was: Rs840.00.Current price is: Rs300.00.
Back to products
OpenMes - Open Messages With Animation Effects
OpenMes - Open Messages With Animation Effects Original price was: Rs756.00.Current price is: Rs270.00.

HTML 5 Upload Image, Ratio with Drag and Drop

Premium Category Products

Original price was: Rs924.00.Current price is: Rs330.00.

HTML 5 Image Upload with Drag-and-Drop and Ratio Control

This solution allows you to create an image upload feature with drag-and-drop support, as well as a feature to maintain a specific aspect ratio for the uploaded image. You can combine HTML5's native drag-and-drop functionality with JavaScript for resizing the image to fit a certain ratio. A HTML5 Upload image tool, full use of HTML5 with canvas (with fallback options). Together with a ratio and drag & drop makes this tool ideal for use in a CMS.

Key Features

  1. Drag-and-Drop Support Users can drag and drop an image file directly into the upload area.
  2. Aspect Ratio Control Ensure that the uploaded image fits a specific width-to-height ratio (e.g., 16:9 or 4:3).
  3. Preview Image Display a preview of the image before submitting it.
  4. Cross-Browser Compatibility Supports all modern browsers.
  5. Simple Integration Easy to implement with minimal code.

Explanation of the Code

HTML Structure

  1. Upload Container: The .upload-container div is styled to look like a dashed area that guides the user to drag and drop an image or click to upload.
  2. Image Input: The hidden input[type="file"] element is triggered when the user clicks the upload area.
  3. Image Preview: A hidden <img> tag (#imagePreview) will display the preview of the uploaded image once it's validated and processed.

CSS Styling

  1. Upload Area Styling: The upload area has a dashed border that changes color when the user drags an image file over it.
  2. Image Preview: The preview image's width is set to 100%, and its height is adjusted automatically based on the aspect ratio.

JavaScript Functionality

  1. Event Handlers:
    • dragover and dragleave are used to show visual feedback when a user drags an image over the upload area.
    • drop triggers when a user drops an image in the upload area, and the file is processed.
    • change event triggers when the file input is used (via click).
  2. File Validation:
    • The file is checked to ensure it’s an image (file.type.startsWith('image/')).
    • After the file is loaded, the aspect ratio is calculated and compared with the desired aspect ratio (16:9 in this case).
  3. Aspect Ratio Check:
    • If the aspect ratio of the image is too different from the specified ratio, an error message is displayed ("Please upload an image with a 16:9 aspect ratio.").
  4. Image Preview: After successfully validating the aspect ratio, the image preview is displayed.

Error Handling:

  • If the file type is not an image or the aspect ratio doesn't match, an error message is shown below the upload area.

Features

  • uses canvas to crop the image, no server scripts needed!
  • want to use a server script, no problem! simple change it with additional options
  • full HTML5 support
  • touch support! Works on tablet and mobile!
  • Responsive design option
  • save your image with AJAX or use the tradional FORM input file element
  • uses ratio to let it fit your screen or element
  • easy to use
  • additional options to configure
  • bootstrap 3.1
  • jQuery 1.9

(Only For Premium Category Products !)

1. All digital products are the most recent version, with no possibility of free updates. After payment, you can request an update to the most recent version for 5 days if a new version is released. We free support within 5 days.

2. If a license is required (Excludes WHMCS license , we provide only method not license), please contact us via email or ticket for assistance with activation. Our license is only valid for activation and does not include support.

3. We provide Mobile, PHP script installation services for $19.90 / ₹1700. Please create a backup after installation as we do not support re-installation. For mobile app source code, we do not offer installation services.

4. If you have any questions, please contact us by email  or create a ticket on this page

5. Please note that any digital products presented on the website do not contain malicious code, viruses or advertising. You will receive the original files from the developers. We do not sell any products that have been downloaded from other websites.

6. The response time can last up to 6 hours.

(Only For Membership Category Products !)

Benefits of our Membership Plans

  • Instant access to all plugins and all themes including all future releases
  • Unlimited domain usage
  • Regular Updates as of when available. Usually, updates are released daily.
  • Before purchasing, please read the Terms and Conditions & Refund Policy.
  • If you have any questions, please first read the FAQs.
  • If you haven’t found the answer to your question, please contact us, and we will respond ASAP.
  • Please note that any digital products on the website do not contain malicious code, viruses, or advertising. We buy the original files from the developers. We do not sell any products downloaded from other sites.
  • Buy or download for FREE by subscribing to our VIP Membership Plan. Join the club of more than 1100+ happy members. This is the same theme as sold by the developer.

Updates:

  • We offer frequent updates for one year from the date of purchase. After this period, you have to purchase the item again to receive further updates, we also offer lifetime updates as a second option.
  • We regularly update products as soon as we are notified about an update, we go and download it from the author and update it on our site, but In case the current version of the product is not the latest, You can request an update for the product by contact form.
  • We send regular emails advising when products have been updated so please be sure to provide an active email address when you sign up.

Support:

  • Our support team is available 24/7, if you have any questions or need help in installing or configuring digital products purchased on the website, please don’t hesitate to contact form.
  • Please note that we are not developers of the provided products, so our technical support capabilities are limited. We do not change product functionality and do not fix developer bugs.

For more information please read FAQs & About Us.

(Only For WHMCS Category Products !)

  • We Only provide WHMCS Module, how you can  nulled any module step only !
  • Instant access to all plugins and all themes 
  • Unlimited domain usage
  • Regular Updates as of when available. Usually, updates are released daily.
  • Before purchasing, please read the Terms and Conditions & Refund Policy.
  • If you have any questions, please first read the FAQs.
  • If you haven’t found the answer to your question, please contact us, and we will respond ASAP.
  • Please note that any digital products on the website do not contain malicious code, viruses, or advertising. We buy the original files from the developers. We do not sell any products downloaded from other sites.

More Like This Products