GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chzuIOT/image-to-text: a pure front-end website transform image file to text.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
pic
pic
 
 
src
src
 
 
static
static
 
 
webpack
webpack
 
 
.babelrc
.babelrc
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.postcssrc.js
.postcssrc.js
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

image-to-text

一个纯前端的图片转字符画工具

仓库地址

项目地址

项目说明

  • 纯前端项目,不依赖服务器
  • 支持 jpg,png,gif 三种格式图片
  • 使用 canvas 来实现单帧图片的解析、缩放和生成,使用gif.js合并单帧图片为gif图片
  • 可等比缩放图片
  • 可自定义文字和背景颜色
  • 可自定义转换时使用的字符
  • 部分方法实现参考已在源码中标明出处

项目使用技术栈

  • webpack
  • React
  • gif.js (生成gif图片用)

项目结构

├─ src
│   ├─ component 组件文件
│   ├─ style 样式文件
│   ├─ tools 图片解析、转化工具文件
│   ├─ App.jsx
│   ├─ index.js
│   └─ index.html
├─ static
│   └─ js
│       └─ gif.worker.js gif.js生成图片依赖文件
├─ webpack
│    └─ webpack 配置文件
└ 其他文件

效果演示

基本功能

basic

图片大小缩放

size

设置颜色(文字和背景)

size

自定义转换字符

size

本地运行

开发模式

npm i
npm run dev

项目打包

npm run build

发布到github pages

npm run deploy

About

a pure front-end website transform image file to text.

blog.kainstar.moe/image-to-text/

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.