Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

CurtisNewbie/hammer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hammer

Hammer - Simple Thumbnail Generation Service (for images and videos).

Dependencies

  • Consul
  • RabbitMQ
  • mini-fstore
  • ffmpeg (for generating video thumbnail)

Updates

  • Since v0.0.5, hammer nolonger uses libvip (external dependency) to compress images. It now uses github.com/disintegration/gift instead, it might be slower and more resource intensive, but it's written purely in Go.

The Sequence

sequenceDiagram

    participant b as backend
    participant m as mini-fstore
    participant h as hammer

    b->>m:Upload image
    b--)h:(MQ) trigger image compression
    h->>m:download original file
    h->>h:compress image
    h->>m:upload compressed image
    h--)b:(MQ) reply file_id of the compressed image
Loading

About

Hammer - Simple Image Compression Service

Resources

License

Stars

Watchers

Forks

Packages

No packages published