Image Resizer Tool
Features:
Image Upload:
- Users can upload any image using the
fileinput element.
- Users can upload any image using the
Custom Height and Width:
- Inputs for entering the desired height and width in pixels.
Responsive Canvas:
- Displays the resized image on a canvas element for preview.
Download Button:
- Allows downloading the resized image in
.pngformat.
- Allows downloading the resized image in
Styling:
- Features colorful, modern styling with a gradient background and styled buttons.
Responsive Design:
- Fully functional across devices, including desktops, tablets, and smartphones.
How It Works:
Image Upload:
- The
FileReaderAPI reads the uploaded image, and theImageobject loads it for resizing.
- The
Canvas Resizing:
- The
canvaselement redraws the image with the specified dimensions.
- The
Download Resized Image:
- The resized image is converted into a data URL and made available for download.
No comments:
Post a Comment