Skip to content

star-light-nova/image-to-ascii-go

Repository files navigation

     "v)7(((JJz    rF(7J)))((()))J7(Fr        `)||^          `?JJ(((7)T'  `?J7(((7)T.     
   . jgBUOOOAg1_ ` 8$9G8$B#OOG#B$8Gd$D      . 5h4$3 .        =egAOOpUgBn  +agAOOpAg8) `   
   ` Lw!bgggy-).  :ygggl+-zggB*'!ugggw^     - |ggg5_         -|_Egggd=]z  "}^qggg6,x;     
        gggK{   . tHgY].  fmgOF  .q2g8u `    'l#dggm .          3Xggm        jRg$V        
      : ]$g6_ ' - :gHE  . n8gG1 .  p$gB -  . hg-oggh .        ' ^pgRY "    ' TAgAu "      
      . q$gh>   - tgR ' . [8gG3 .`. +gJ -  - 5g^F#gj;         ` +OgDa .    ` (AgKo .      
      . w$gh;   ` >gV . ` [8gGI ` - 'gR .   ,jUs {gg' -         <OgRy .    ` JAgKe .      
      . w$gh;     <q.   ` [8gGI `   ^p.   - 8g,  ]gg# `         <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `         . Ogr  emgS! `        <OgRy .    ` JAgKe .      
      . w$gh;     -.    ` [8gGI `    ..    ;kVr ` Lggr -        <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `        - =gR `- egg<          <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `        ` "g_ '- 5#g4| `       <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `       ` TO9+     /ggs -       <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `       - sgG`+>>! tggv         <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `         LgK4pppp4XggXn .      <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `      . lH85xxxxxjZOBg( -      <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `      - Fgk _"''', Cgg1"       <OgRy .    ` JAgKe .      
      . w$gh;           ` [8gGI `       :3gO `      x$ggq .     <OgRy .    ` JAgKe .      
      . q$gh>           ` n8gb3 `     . 2gEc `    `  vggl -     +OgDa .    ` 7AgKo .      
      : E$gP=`-        .: 1mgOC :.   ., lgY :      : cggZ_ '  ' >pgRx :    ' )AgA[ "      
        bggb/             4ggm]        LqgB          [R$g=      LKgg9        38gD]        
     r*2ZgBg)Z#`       hnmSgBgaHnq ` 2nIggnY'"     4}>gBgb 8 -gZ)gBgZEc<  '.YigBgla<_     
   . jgggD#Dgg[_     ` :gggD#Dggg8 ' OggRDggD/ ` ` ,ggD#DRg< ;YggD#Dggg[  +wggD#Dgggv `   
     =yj]222ya[`       f]j]222]j]{   F]y2Eayx'     f]y222]2} .nay222]jj^  -oya222ayx"

Go Image to ASCII Server

Demo GIF

Table of content

Introduction

Upload an image, and get ASCII version of it using the simplest UI.

There are two ways to run this

Default

Prerequisites

  • Go >= 1.22.0
  • Gin >= 1.9.1
  • VIPS >= 8.15.1
  • pkg-config >= 0.29.2

The MacOS installation through brew:

make install

Running the server

# Development
make run-dev

# Production
make run-prod

Docker

Prerequisites

  • Docker >= 25.0.3
# Build the whole project.
make build

# Run the server.
make dock-run

# Stop the server.
make dock-stop

# Clean up (removes container and image)
make dock-clean