JuliaIO / Sixel.jl

The Julia wrapper of libsixel
MIT License
41 stars 5 forks source link

WIP: use low level sixel_encode #2

Closed johnnychen94 closed 3 years ago

johnnychen94 commented 3 years ago

MWE is in demo.jl:

using Sixel, ImageCore, TestImages, ImageInTerminal
img = testimage("cameraman")

enc = Sixel.SixelEncoder(stdout, img)
enc(img)

cc: @Gnimuc

codecov[bot] commented 3 years ago

Codecov Report

Merging #2 (3f41ef6) into jc/encoder (25aef2f) will decrease coverage by 2.91%. The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##           jc/encoder      #2      +/-   ##
=============================================
- Coverage        2.91%   0.00%   -2.92%     
=============================================
  Files               3       3              
  Lines             206     228      +22     
=============================================
- Hits                6       0       -6     
- Misses            200     228      +28     
Impacted Files Coverage Δ
src/Sixel_CModule.jl 0.00% <0.00%> (-0.63%) :arrow_down:
src/encoder.jl 0.00% <0.00%> (-6.98%) :arrow_down:
src/types.jl 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 25aef2f...3f41ef6. Read the comment docs.

johnnychen94 commented 3 years ago

Since the low-level interop calling issue is now fixed, I'm merging this into the main PR #1. Thank you @Gnimuc for the helps!