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

Unknown Image Format #16

Open
kusold opened this issue Oct 4, 2022 · 6 comments
Open

Unknown Image Format #16

kusold opened this issue Oct 4, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@kusold
Copy link

kusold commented Oct 4, 2022

Prerequisites

OS: MacOS 12.6
PlainPrinter Version: 0.2.2

Current Behavior

When I click "Start Printing", I receive a popup that contains the following:

Error: Unknown image format.
at Function.open (/Applications/PlainPrinter.app/Contents/Resources/app.asar/node_modules/pdfkit/lib/image.js:34:13)
at PDFDocument.openImage (/Applications/PlainPrinter.app/Contents/Resources/app.asar/node_modules/pdfkit/lib/mixins/images.js:122:24)
at PDFDocument.image (/Applications/PlainPrinter.app/Contents/Resources/app.asar/node_modules/pdfkit/lib/mixins/images.js:27:22)
at /Applications/PlainPrinter.app/Contents/Resources/app.asar/dist/main/webpack:/src/main/main.ts:290:13
at node:electron/js2c/browser_init:189:563

Steps to Reproduce

  1. Open Plain Printer on a Mac

  2. Configure,and press Start

  3. Error occurs
    image

Possible Solution (Not obligatory)

I have found references that pdfkit requires uppercase extensions. Grabbing the images as *.PNG may work.

Context

This causes the printing feature to not work.

Your Environment

  • Node version: v18.10.0
  • PlainPrinter version or branch: 0.2.2 Release
  • Operating System and version: MacOS 12.6
@kusold kusold added the bug Something isn't working label Oct 4, 2022
@manhtai
Copy link
Member

manhtai commented Oct 6, 2022

Hello, thanks for the report. I'm just testing on my macOS 12.6 with M1 chip, it works fine, so no clues how to fix this.

@kusold
Copy link
Author

kusold commented Oct 6, 2022

I’m using an Intel Mac, so that might be the difference. I also verified my file system is case-insensitive (the standard).

@manhtai
Copy link
Member

manhtai commented Oct 7, 2022

It works fine on my Intel Mac also (Mac 16in 2019). Same macOS version.

@Hao-Xue-Git
Copy link

I have an Intel Mac 2019 15 inch, and have the same problem.

@bemfica
Copy link

bemfica commented May 20, 2024

+1 here. @kusold do you use multiple monitors? No idea if this may be related, but still.

@kusold
Copy link
Author

kusold commented May 20, 2024

I might have been using multiple monitors. My use case for this tool has passed, as well as my Intel Mac, so I haven’t attempted again since running into this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants