Git Product home page Git Product logo

Comments (14)

lukevp avatar lukevp commented on May 18, 2024 1

That's great, so glad that it is fixed! I'm also a portal fan although I haven't gotten a chance to play in a while!

from esc-pos-.net.

lukevp avatar lukevp commented on May 18, 2024

@juliogamasso @montyclt feature/8-add-dithering-images has been created, which prints images with much higher fidelity by using a dithering algorithm. However, on my Epson it also has corruption in the final image (due to a buffer overflow). Could you give this a try and see if the image printing of the kitten looks better now, and if you see corruption in any images?

from esc-pos-.net.

montyclt avatar montyclt commented on May 18, 2024

Ok, I will try it tonight (utc+2)

from esc-pos-.net.

juliogamasso avatar juliogamasso commented on May 18, 2024

@lukevp I did the test, the printing came out very good, but in test 6 using Epson TM88V an error occurred 'Insufficient buffer for the data requested'

from esc-pos-.net.

montyclt avatar montyclt commented on May 18, 2024

Should I use image test o legacy image test?

I executed image test and I get strange characters (because my printer requires legacy images), then I get a print with info of my printer (the same info if I press power + feed button in the printer), then the paper is cut and I get printer info again, then the paper is again cut and I get strange characters, low quality image and strange characters, then an exception in throwed and program ends.

After doing this test, I cannot connect to the printer again, even turn off and turn on again. Possible data ramain into the buffer?

image

from esc-pos-.net.

lukevp avatar lukevp commented on May 18, 2024

@montyclt were you able to get your printer to connect again? Sorry for the trouble! You could modify the test to print using legacy, but it might be better for you to wait and retest after I fix the large buffer bug on in issue #10

from esc-pos-.net.

montyclt avatar montyclt commented on May 18, 2024

@montyclt were you able to get your printer to connect again? Sorry for the trouble! You could modify the test to print using legacy, but it might be better for you to wait and retest after I fix the large buffer bug on in issue #10

Yes, I done a factory reset in printer and I can reconnect again. Maybe a data stay into the buffer for all the time? I don't know why happened, but I solved. Thank you!

from esc-pos-.net.

juliogamasso avatar juliogamasso commented on May 18, 2024

I also had problem with buffer size but not to the point of not being able to connect. I made a byte extension to divide according to the size of the printer buffer and it is working.

from esc-pos-.net.

montyclt avatar montyclt commented on May 18, 2024

I also had problem with buffer size but not to the point of not being able to connect. I made a byte extension to divide according to the size of the printer buffer and it is working.

Thanks for the info, if you can, document it to avoid the problem in other libraries. Thank you!

I'll follow #10

from esc-pos-.net.

lukevp avatar lukevp commented on May 18, 2024

@montyclt @juliogamasso The dithering and large byte array issues should all be working properly now, check out PR #30 and let me know!

from esc-pos-.net.

montyclt avatar montyclt commented on May 18, 2024

@montyclt @juliogamasso The dithering and large byte array issues should all be working properly now, check out PR #30 and let me know!

Thanks @lukevp. Can you document the problem about large byte array? I will execute all test this weekend and inform you about the result :)

from esc-pos-.net.

lukevp avatar lukevp commented on May 18, 2024

@montyclt on release/1.0 there is a test case called Large Byte Arrays. This passes a stacked image array to the serial printer in one shot, so it tests the buffering of the underlying stream. This test failed with the old implementation using SerialPortStream, but on Windows 10 over Serial it prints perfectly. I updated the PR just now to use the legacy print command that your printer supports, so make sure you get the latest version before you test.

from esc-pos-.net.

montyclt avatar montyclt commented on May 18, 2024

I tested large byte arrays with network printer and works ok. I get printed 20 images, 10 kitten and 10 companion cube.

Off-topic: A Portal fan here! ๐Ÿ˜„

from esc-pos-.net.

lukevp avatar lukevp commented on May 18, 2024

Dithering is supported in 1.0.0 release.

from esc-pos-.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.