-
Notifications
You must be signed in to change notification settings - Fork 72
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
Error with some png image #49
Comments
Are you able to share the contents of I can't see a way to debug this without a sample file which shows the issue. |
Hi Mike, |
Received. Your file is malformed: You are using the The file contains So with this small patch, your file will process: diff --git a/src/Parser/Command/StoreRasterFmtDataToPrintBufferGraphicsSubCmd.php b/src/Parser/Command/StoreRasterFmtDataToPrintBufferGraphicsSubCmd.php
index dcf9e47..41d4ced 100644
--- a/src/Parser/Command/StoreRasterFmtDataToPrintBufferGraphicsSubCmd.php
+++ b/src/Parser/Command/StoreRasterFmtDataToPrintBufferGraphicsSubCmd.php
@@ -51,6 +51,7 @@ class StoreRasterFmtDataToPrintBufferGraphicsSubCmd extends DataSubCmd implement
return true;
} else if ($this -> y2 === null) {
$this -> y2 = ord($char);
+ $this -> dataSize = intdiv($this -> getWidth() + 7, 8) * $this -> getHeight();
return true;
} else if (strlen($this -> data) < $this -> dataSize) {
$this -> data .= $char; I have not tried to print your file, but if it works on an Epson printer, I would consider applying this patch in some form, otherwise we should return only part of the image. In either case, we can detect the problem and log a warning when this situation arises. |
Thanks! its working to process to html, I don't have Epson printer, but I think my client using an Epson printer, so if it's working I will tell you. Thank you |
Hi I got error when I using some .png image when I want to convert to html (not all png image, but I don't know what different between the image that error and the image that not) . This the errors look like
Thank you!
The text was updated successfully, but these errors were encountered: