Skip to content

Dituon/petpet-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

petpet-rs

Intro

Try Online

根据模板生成图像, 详见 Petpet标准

todo

perf
  • thread pool
  • cache surface
  • GPU filter
  • local filter
  • config file
  • mix fonts

template

Text

TextData

  • TextData.text
  • TextData.pos
  • TextData.angle
  • TextData.color
  • TextData.font
  • TextData.size
  • TextData.align
  • TextData.wrap.BREAK
  • TextData.wrap.ZOOM
  • TextData.style
  • TextData.position
  • TextData.origin
  • TextData.strokeColor
  • TextData.strokeSize
  • TextData.greedy

Avatar

  • Avatar.type
  • Avatar.pos
  • Avatar.posType
  • Avatar.crop
  • Avatar.cropType
  • Avatar.style.MIRROR
  • Avatar.style.FLIP
  • Avatar.style.GRAY
  • Avatar.style.BINARIZATION
  • Avatar.filter.SWIRL
  • Avatar.filter.BULGE
  • Avatar.filter.SWIM
  • Avatar.filter.BLUR
  • Avatar.filter.CONTRAST
  • Avatar.filter.HSB
  • Avatar.filter.HALFTONE
  • Avatar.filter.DOT_SCREEN
  • Avatar.filter.NOISE
  • Avatar.filter.DENOISE
  • Avatar.filter.OIL
  • Avatar.fit
  • Avatar.round
  • Avatar.rotate
  • Avatar.origin
  • Avatar.avatarOnTop
  • Avatar.angle
  • Avatar.opacity

Background

  • Background.size
  • Background.color
  • Background.length

Core

  • decode GIF
  • encode GIF

Server

  • get
  • post
  • form-data

Feature

  • Avatar.crop not working when Avatar.fit: COVER
  • size variable not working when Avatar.posType: DEFORM
  • Mixing of matrices is inexact

About

根据模板生成图像

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published