Skip to content
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

generator.image Printing image too slow #22

Open
LeiYao123 opened this issue Jun 28, 2023 · 2 comments
Open

generator.image Printing image too slow #22

LeiYao123 opened this issue Jun 28, 2023 · 2 comments

Comments

@LeiYao123
Copy link

LeiYao123 commented Jun 28, 2023

At first, I was using ESC_ Pos_ Utils, esc_ Pos_ Utils_ Plus can only use imageRaster to print images, but not image. Actually, I don't know the difference between these two because I don't understand the printing instructions. As a web developer, I don't understand native development,
After using your plugin, I found that both image and imageRaster methods can print images normally, but the speed is still slow. After printing the following image, the image method takes about 10 seconds, while imageRaster takes about 20 seconds. I don't know why?
(Note that the entire ticket below is an image through widgetToImage)

The printing time is shown in the following figure

On the left is the printed effect, and on the right is the time consumption statistics
Time is mainly spent on bytes += generator.image(decodedImage); bytes += generator.imageRaster(decodedImage);

image

@deverlex
Copy link

deverlex commented Jul 6, 2023

Use raster graphics will print faster, but it's have a bug now

@BrianTV98
Copy link

@deverlex de
I'm also interested in Use raster graphics for printing. If you have any solutions or ideas to do this, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants