Skip to content

HMH-3080/go_WebP_Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modern Image to WebP Converter

A high-performance, minimalist web application for converting images to the WebP format. Built with Go, Fiber v3, and Templ.

Features

  • Blazing Fast: Uses Go's performance and chai2010/webp for efficient encoding.
  • Smart Compression: Choose between Good, Best, and Maximum quality presets.
  • Real-time Preview: Instant visual feedback of the selected image before conversion.
  • Compression Stats: See exactly how much space you've saved with detailed size comparisons.
  • Responsive & Modern UI: A sleek, dark-mode/glassmorphism design built with Tailwind CSS.
  • No Page Reloads: Powered by HTMX for a smooth SPA-like experience.

Tech Stack

Getting Started

Prerequisites

  • Go 1.23+
  • Templ CLI (go install github.com/a-h/templ/cmd/templ@latest)

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd gofiber
  2. Install dependencies:

    go mod tidy
  3. Generate Templ files:

    templ generate
  4. Run the application:

    go run main.go

    Or use Air for live reloading:

    air

The server will be running on http://localhost:3000.

Project Structure

  • main.go: Application entry point, routes, middleware, and image processing logic.
  • home.templ: The UI component defined using Templ.
  • go.mod: Project dependencies.

Security

All image processing happens in-memory. Images are not stored on the server disk, ensuring privacy and security for your files.


Built with Go and Fiber.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors