pixelmatch icon indicating copy to clipboard operation
pixelmatch copied to clipboard

JPEG support in CLI

Open thrnd opened this issue 6 years ago • 4 comments

For example, i have 2 exactly the same images but one in .png and other in .jpg extensions and i want to compare them.

thrnd avatar Jun 13 '19 10:06 thrnd

Oh, right now i'm getting Error: Invalid file signature btw.

thrnd avatar Jun 13 '19 10:06 thrnd

No — the CLI that accompanies the library is very basic and can only compare PNGs. We might want to add JPG support though, e.g. with https://github.com/eugeneware/jpeg-js

mourner avatar Jun 13 '19 12:06 mourner

Please consider adding JPEG/JPG support 👍

TacoTheDank avatar Apr 17 '20 14:04 TacoTheDank

I would also love it if you could add JPEG support. It could help with this issue: https://github.com/americanexpress/jest-image-snapshot/issues/209 which is important as jest tests can be a lot faster when using jpeg instead of png.

lukasoppermann avatar May 28 '20 04:05 lukasoppermann