Sharp: vips warning: VipsJpeg: error reading resolution

Created on 19 Dec 2016  路  6Comments  路  Source: lovell/sharp

I've faced with a lot of warnings like:

vips warning: VipsJpeg: error reading resolution
vips warning: VipsJpeg: error reading resolution
vips warning: VipsJpeg: error reading resolution
vips warning: VipsJpeg: error reading resolution

macOS 10.12.1
[email protected]

$ node -v
v6.7.0

libvips was downloaded by sharp

blocked-upstream-dependency

Most helpful comment

OK, I've removed the warning. This change will be in libvips 8.5. Thanks!

Your images have exif data but no exif resolution fields, even though they are required by the spec, since (I think) CS3 is assuming that readers will fall back to the jfif resolution settings.

The libvips reader does this, so the warning for out of spec exif is probably not useful.

All 6 comments

Hello, my best guess would be that this is related to https://github.com/jcupitt/libvips/pull/518 introduced in libvips v8.4.2.

These warnings are mostly harmless and can be ignored by setting the VIPS_WARNING environment variable.

(See also https://github.com/jcupitt/libvips/issues/544 for some future possible improvements around logging.)

Hi @mahnunchik, I'm the libvips maintainer. Could you post a sample image that produces a warning? I'd like to fix this, if I can.

OK, I've removed the warning. This change will be in libvips 8.5. Thanks!

Your images have exif data but no exif resolution fields, even though they are required by the spec, since (I think) CS3 is assuming that readers will fall back to the jfif resolution settings.

The libvips reader does this, so the warning for out of spec exif is probably not useful.

@lovell version 8.5.1 has been released :1st_place_medal:. Check here.

Warning messages from libvips will be suppressed by default in sharp v0.18.0+, which will require libvips v8.5.2+. Please subscribe to #607 for details and updates.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

terbooter picture terbooter  路  3Comments

zhump picture zhump  路  3Comments

natural-law picture natural-law  路  3Comments

AVVS picture AVVS  路  3Comments

emmtte picture emmtte  路  3Comments