google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.9k stars 977 forks source link

Photoshop cannot open files #1

Closed MegaByte closed 7 years ago

MegaByte commented 7 years ago

Photoshop under OS X cannot open many files produced by guetzli. It returns with error "Could not complete your request because an invalid non-baseline JPEG table number >= 2 is found." I am also told that they don't work under OS X Preview for some people. I can run them through jpegtran to get them to work everywhere.

robryk commented 7 years ago

Can you provide an example of Guetzli output that demonstrates the Photoshop problem? Also, version of Photoshop you're using might be useful.

Do such files work for you in Preview (I'm not sure if they did work for you in Preview or if you didn't say either way)?

MegaByte commented 7 years ago

Source: tot_defaultpngsettings Output: tot_guetzli_84 Quality doesn't appear to matter -- I get the error with all qualities on this file (as well as others). I experienced the problem on Photoshop 2015.5 macOS 10.12.1. I did not have a problem in Finder. On the computer where Finder also didn't work, it was Photoshop 2015.5 and OS X 10.10.5.

robryk commented 7 years ago

I think I've found the issue. Would you mind verifing if the attached file can be opened in Photoshop?

File: image

MegaByte commented 7 years ago

Yes, that file works for me.

robryk commented 7 years ago

Thanks. The commit I've just pushed should fix the problem.