Skip to content

Unknown Image Format #16

Open
Open
@kusold

Description

@kusold

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions