-
Notifications
You must be signed in to change notification settings - Fork 78
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
Not able to get the full Image Print by the thermal printer #52
Comments
@KevinGong2013 @mauricevb @chibombo @pylearndl Please give some suggestions! |
Any guidance will be appreciated ! |
@mohitkokwani has you found a solution? |
No Not YET! waiting for guidance of the @KevinGong2013 @mauricevb @chibombo @pylearndl |
Can Someone please tell me why this is happening ? Like the image starts printing but the after printing the half image the thermal printer switches off (power off) automatically! |
@mohitkokwani Can you share your code with me? I can't even get the image to print. Text prints normally, but image doesn't even want to print. |
extension UIImage {
func resizeWithWidth(width: CGFloat) -> UIImage? { |
@mohitkokwani The Leopard A8 printer prints correctly. The Leopardo A7 Light printer does not print. I tried to change the width but it still won't work. Any idea what it could be? |
Same Problem is here my printer is MPT-III thermal printer in which my image is not printing full after printing half image the printer stops and power off automatically i don't understand what could be the problem @chibombo Help Us. |
Before print your image use this my function to resize correctly the image `func resizeImage(image: UIImage, newWidth: CGFloat) -> UIImage {
}` |
Because this: let widthBytes = (width + 7) / 8. This is a bug.
|
please paste this👆 output. |
The output I get:
That's A lot of A's 😅 |
Hi @mauricevb , I have the same issue, did you solve it? |
Hi, i am using the MPT-III thermal printer and i have used your library into one of my projects to print the image
what i know so far is :
-Printer will print the image only if the image width is divisible by 8
What i am doing :
Actually i have to print the pdf through thermal printer so what i am doing is converting the pdf into image and i have the image of with : 544 Height and 3434 width
Well i need the image vertically so i am rotating the image with 90 degree through that i am getting a new image of 3434 Height and 544 Width
So when i m trying to print the image using ticket the image is perfectly fine but after printing the half image or 1/4 of image the printer stops printing the image can anyone please help me Thanks a lot in advance.
Also one more thing when i m trying to print the same image with 264 Height and 1575 Width the full image is printing but it looks small
Anyone who finds the solution please let me know : Thank you!
The text was updated successfully, but these errors were encountered: