Coder Social home page Coder Social logo

trees1981 / image-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asikarwar007/image-server

0.0 0.0 0.0 34 KB

Image Server is a lightweight Go application that provides a web server for serving images and dynamically resizing them based on query parameters. Easily retrieve images with customizable dimensions and quality through a simple URL pattern. This project utilizes Go's powerful image manipulation capabilities

JavaScript 22.04% Go 77.96%

image-server's Introduction

Image Server

This is a simple Go program that sets up a web server to serve images. It allows you to resize images dynamically based on query parameters.

Getting Started

Prerequisites

To run this program, you need to have Go installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/asikarwar007/image-server.git
    
  2. Change to the project directory:

    cd image-server
    
  3. Build the executable:

    go build
    
  4. Run the program:

    ./image-server
    

The server will start listening on port 8080. You can access it by opening a web browser and navigating to http://localhost:8080/.

Usage

Once the server is running, you can access the images using the following URL pattern:

http://localhost:8080/image-name.jpg?w=300&h=200&q=80
  • image-name.jpg should be replaced with the name of the image file you want to retrieve.
  • w (optional) specifies the desired width of the image.
  • h (optional) specifies the desired height of the image.
  • q (optional) specifies the desired quality of the image.

License

This project is licensed under the MIT License.

  • Feel free to customize the content and sections as per your project's requirements. Don't forget to include a license file (e.g., LICENSE) in your repository and update the link in the README accordingly.

image-server's People

Contributors

asikarwar007 avatar

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.