Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

EPSON printers show × for JPEG files exported from LibreOffice

Problem

Some EPSON printers have a USB port to print JPEG files stored in USB flash drives. When you store JPEG files exported from LibreOffice to USB flash drives, the printers (especially my EP-881AW) show × mark on the JPEG files.

Cause

These printers only support JPEG files based on DCF Version 1.0 or 2.0*1. These DCF specifications assumes baseline JPEG*2*3.

On the other hand, LibreOffice exports JPEG files as progressive JPEG*4.

Solution

You can convert progressive JPEG to baseline JPEG with mozjpeg*5. If you use static-linked binaries, you can do it from the command line with:

jpegtran-static.exe -revert -outfile baseline.jpg progressive.jpg