Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pepeline

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pepeline

  • 0.3.14
  • PyPI
  • Socket score

Maintainers
1

pypl

git

pepeline-rs

Fast rust-python librarian for internal needs of an organization

from pepeline import screentone, fast_color_level, read, save, cvt_color, CvtType, ImgColor, ImgFormat
img = read(<"img path">, ImgColor.GRAY, ImgFormat.F32)
img = fast_color_level(
    img,     
    in_low = 10,
    in_high = 240,
    out_low = 0,
    out_high = 255,
    gamma = 1.0
)
img = cvt_color(img, CvtType.RGB2CMYK)
img[:, :, 0] = screenton(img[:, :, 0], dot_size=7, angle=-15)
img[:, :, 1] = screenton(img[:, :, 1], dot_size=7, angle=0)
img[:, :, 2] = screenton(img[:, :, 2], dot_size=7, angle=15)
img[:, :, 3] = screenton(img[:, :, 3], dot_size=7, angle=30)
img = cvt_color(img, CvtType.CMYK2RGB)
save(img, "out.png")

TODO:

  • resize✅
  • documentation ♻️
  • refactoring ♻️
  • add tests ♻️
  • add benchmarks scripts ♻️
  • simd ❓

Function:

  • read - read img (supports psd)
  • screentone - add screenton patern.
  • fast_color_level - color levels correction
  • noise_generate - ganerate noise array
  • save - fast save image
  • cvt_color - converts color extensions, currently only supports f32 and in some places 0-1

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc