-
Notifications
You must be signed in to change notification settings - Fork 1
rework 8bit
color encoding
#5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1a33a84
to
a7638e0
Compare
Codecov Report
@@ Coverage Diff @@
## master #5 +/- ##
==========================================
- Coverage 95.13% 93.75% -1.39%
==========================================
Files 3 3
Lines 144 144
==========================================
- Hits 137 135 -2
- Misses 7 9 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Thanks, I've slightly updated the test script in #5 (comment). I've fixed the grayscale issue, here is the output using the 2 color depths ( Here is the test script for comparing refs imgs against current master for visual inspection: #!/usr/bin/env bash
{
root="[...]/XTermColors.jl" # this PR
for f in $(find $root -path '*/reference/*.txt' | sort -h); do
tmp=$(mktemp)
url="https://raw.githubusercontent.com/JuliaImages/XTermColors.jl/master/test/reference/$(basename $f)"
wget -q -O $tmp $url
if [ $(wc -c $tmp | awk '{ print $1 }') -eq 0 ]; then
echo "== disappeared($f) $url =="
continue
fi
if ! diff $f $tmp 1>/dev/null; then
echo
echo "== remote($url) =="
cat $tmp; echo
echo "== local($f) =="
cat $f; echo
else
echo "== same($f) =="
fi
rm $tmp
done
exit
} @johnnychen94, there are some visual changes, so I'm wondering which reference images are better ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd vote for the PR version. But a few packages use ImageInTerminal.encode_img
to as test util to compare images, so this will be a breaking change to ImageInTerminal.
Thanks, this means that we should release |
1.0 means that API is stable and works. I feel ImageInTerminal is far from stable, e.g., the display, sixel and related are still not well tested. I personally prefer 0.5, but don't take it too seriously, we have many major release versions to use. Just feel free to make 1.0 release if you like it this way! |
Ha, I mismatched semver again, let's make it |
Superseding JuliaImages/ImageInTerminal.jl#62.
Goes with JuliaImages/ImageInTerminal.jl#68.
@johnnychen94 could you tell me if you obtain the same images with this PR ?
Your graybar image seems better than mine (https://user-images.githubusercontent.com/8684355/147930881-ef076fb5-3252-4d9b-8f00-11a32fa9648f.png), my gradient is not uniform and I have thin dark lines appearing ...
Output with this PR:
8bit colors

sixel
