Code Monkey home page Code Monkey logo

imageresizer's Introduction

Image Resizer

GitHub stars GitHub forks GitHub issues GitHub pull requests GitHub GitHub release (latest by date) GitHub contributors GitHub last commit GitHub top language Dependencies Code size Open Source Love

A simple Node.js application to upload images, resize them to specified dimensions or aspect ratios, and export them in both webp and avif formats.

Deploy with Vercel

Features

  • Upload images through a web interface.
  • Resize images based on pixel dimensions or aspect ratios.
  • Export resized images in webp and avif formats.
  • Retain and display all historically uploaded and resized images.

Prerequisites

Setup & Installation

  1. Clone the repository:
git clone https://github.com/hoichoi-opensource/imageresizer.git
cd image-resizer
  1. Install the required packages:
npm install

Running the Application

Start the server:

node server.js

Visit http://localhost:3000 in your browser to access the application.

Usage

  1. Click on the "Choose File" button to select an image.
  2. Click on the "Upload and Resize" button.
  3. The resized images in both webp and avif formats will be displayed along with their respective file sizes.

Contributing to the Project

We welcome contributions from everyone who is interested in helping to improve this project! Whether it's fixing bugs, adding new features, improving documentation, or spreading the word, your help is appreciated.

Here are some ways you can contribute:

  • Reporting bugs: If you find a bug, please report it by opening a new issue on GitHub.
  • Suggesting enhancements: Have an idea to make this project better? Share it with us by opening a new issue for discussion.
  • Submitting changes: Want to submit a fix or a feature? Great! Fork the repository, make your changes, and submit a pull request.

Getting Started

  1. Fork the repository: Click the 'Fork' button at the top right of this page to create your copy of the repository.
  2. Clone your fork:
  3. Create your feature branch:
  4. Make your changes: Implement the changes or improvements you propose.
  5. Commit your changes:
  6. Push to the branch:
  7. Submit a pull request: Go to your fork on GitHub and click the 'Pull Request' button to send your changes review.

Please see our CONTRIBUTING.md for guidelines on how to contribute to this project.

Checkout the current issues as well to start .

imageresizer's People

Contributors

alokemajumder avatar dependabot[bot] avatar hoichoidev avatar raunakmandal avatar sayakongit avatar shubhankarmitra avatar snyk-bot avatar tamalcodes avatar warmachine028 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imageresizer's Issues

[DX] Issue and pull request templates for contributors

What i am suggesting to add ?

I am suggesting adding Issue and PR Templates to the repository, it can be as many categories as needed - primary categories of issues are mostly: bugs, docs, feature, and so on.

Why to add it ?

Having templates in place prevents spam, and helps out the contributors to raise the issue quickly along with automated labels which in turn makes it easy for the maintainer to manage the contributions. The Pull request template in turn makes sure that there is always ample information on the changes that were made.

image
image

Can I work on it ?

Yes, I will be glad to help an Opensource project grow more !

UI/UX Improvements Needed for Image Upload and Resize Feature

Issue:
The current UI/UX design for the image upload and resize feature on the frontend lacks intuitiveness and clarity. Users have reported difficulties in understanding the process and have experienced inconsistencies in the resizing functionality.

Steps to Reproduce:

Navigate to the image upload section.
Try uploading an image.
Attempt to resize the uploaded image.
Expected Behavior:

The image upload button should be clearly labeled and easily accessible.
Upon uploading, users should receive feedback indicating a successful upload.
The resize feature should provide clear handles or markers to adjust the image dimensions.
The final resized image should maintain its aspect ratio and quality.
Actual Behavior:

The upload button is not prominently displayed.
No feedback is provided after image upload.
Resizing handles are not intuitive, leading to distorted images.
The resized image sometimes loses quality.
Suggested Improvements:

Redesign the image upload button to make it more prominent and add a tooltip or label.
Provide a success notification or visual cue after a successful image upload.
Improve the resizing handles to ensure they are user-friendly and maintain the image's aspect ratio.
Ensure the image quality remains consistent after resizing.

Error 404: NOT_FOUND while deploying to Vercel

I encountered an error while trying to deploy the project to Vercel. The deployment failed, and I received the following error message, while trying to upload the image and resize it .

`404: NOT_FOUND
Code: NOT_FOUND
ID: bom1::krfmm-1696231582630-9713fa1e91c3

`
Steps to Reproduce:

Pushed the latest changes to the GitHub repository.
Triggered a new deployment on Vercel.
Now go to the url and upload a image and then try to resize it .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.