0

Lp will not print an image to a printer when the image is stored as a jpeg. If I convert the image using convert image.jpeg image.png and then lp image.png, then lp will print the png to my printer. But, lp image.jpeg fails to queue any print job or show any error.

General web reports that lp can print a jpeg, but my Debian 13 basic install won't do it and such has been the case many years of previous installs.

I could create a function which converts a jpeg to a png automatically, but I imagine lp uses libraries to convert files for printing. I have no idea how lp performs basic conversion or what toolboxes it uses. What do I need to install to enable lp to directly print jpeg image files?

  • I am using the cups printing system and systemctl status cups.service says that the service is active and the scheduler is running.
  • file -bi reports image/jpeg; charset=binary for the images that lp cannot print.
  • apt-cache policy cups-filters-core-drivers says that the latest trixie/main and sid/main package candidate, version 1.28.17-6 is installed.
3
  • When you say "directly print jpeg image files" do you mean send the image to a printer and the printer prints the image on paper? Or are you looking for some other type of rendering the image into another format, such as jpeg -> PDF? Commented May 31 at 2:24
  • I don't own a printer to experiment with ... does this make sense to you? Commented May 31 at 3:53
  • 2
    From which printing system package does your lp command come from? Are you using CUPS (in which case the JPEG image conversion lives in the cups-filters-core-drivers package) or some other printing system, like LPRng? Will file -i image.jpeg actually report the file type as image/jpeg? Commented May 31 at 3:54

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.