improve vipsthumbnail with broken images
if there was an incorrect embedded profile, no fallback import profile, and an export profile, vipsthumbnail could crash see https://github.com/jcupitt/libvips/issues/186
This commit is contained in:
parent
ffe90ef38a
commit
9be2d6cc8d
|
@ -575,6 +575,10 @@ thumbnail_shrink( VipsObject *process, VipsImage *in,
|
|||
out = t[7];
|
||||
}
|
||||
|
||||
/* If the embedded profile failed and there's no fallback or
|
||||
* the fallback failed, out will still be NULL.
|
||||
*/
|
||||
if( out )
|
||||
in = out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue