Replies: 2 comments 3 replies
-
You are comparing the compressed result of some data (no mention of how it was created) with it being recompressed with SharpZipLib. If they are not compressed with the same engine, using the same settings, they most likely will be different. Created a dotnet fiddle from your example code here: |
Beta Was this translation helpful? Give feedback.
0 replies
-
HI,
Thanks for your response.
My workflow below:
Step 1: Edit label *.nlbl and print out to the file to .prn in the tool of
Zebra Printer.
Step 2: Because of the fonts not supported in printer, so all the text
converted to images automatically when I print out it to file. (The text is
changeable.)
for example the encoded image with red box.
![image](https://user-images.githubusercontent.com/29701120/201651614-7f82331f-906f-4c76-89b5-0ae53e8986de.png)
step 3: follow the steps below (The compressed result was exported from
the label, which is created by the tool of Zebra Printer and follow the
below descriptions.):
![image](https://user-images.githubusercontent.com/29701120/201651696-f6c44d9c-de2a-4a2d-b465-7c574aeb5ee4.png)
The operations below were under SharpZipLib. Though the operation in
different engine, the result should be same,if not, each holder has different
private algorithm. The LZ77 is public source code which is not meaningful.
(1) I decompressed the content inside the red box to *.png.
(2) Load the image from file which was saved just now.
(3) However I can not get the content inside the red box after compressed
the image to text again.
The issue relate to LZ77 algorithm, DeflateStream in C#, zlib.net, SharpZipLib
all can not help me to get a correct result.
Maybe I explained my issue clearly.
nils måsén ***@***.***> 于2022年11月11日周五 17:19写道:
… You are comparing the compressed result of some data (no mention of how it
was created) with it being recompressed with SharpZipLib. If they are not
compressed with the same engine, using the same settings, they most likely
will be different.
Created a dotnet fiddle from your example code here:
https://dotnetfiddle.net/yhVsbu
—
Reply to this email directly, view it on GitHub
<#800 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHCTIAA6T2NFS2UWE4UBZQDWHYFQNANCNFSM6AAAAAAR5HU26M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question:
step 1: decompress a text named A
step 2: compressed A to new text B
step 3 the content of A is not same with B, why?
Environment:
SharpZipLib version="1.3.3" targetFramework="net452"
Sourcecode of class Program
Beta Was this translation helpful? Give feedback.
All reactions