diff options
Diffstat (limited to 'xps/xpsimage.c')
-rw-r--r-- | xps/xpsimage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xps/xpsimage.c b/xps/xpsimage.c index a4305734..7dcb54aa 100644 --- a/xps/xpsimage.c +++ b/xps/xpsimage.c @@ -17,25 +17,25 @@ xps_decode_image(xps_context *ctx, xps_part *part, xps_image *image) { error = xps_decode_jpeg(ctx, buf, len, image); if (error) - return fz_rethrow(error, "could not decode jpeg image"); + return fz_rethrow(error, "cannot decode jpeg image"); } else if (memcmp(buf, "\211PNG\r\n\032\n", 8) == 0) { error = xps_decode_png(ctx, buf, len, image); if (error) - return fz_rethrow(error, "could not decode png image"); + return fz_rethrow(error, "cannot decode png image"); } else if (memcmp(buf, "II", 2) == 0 && buf[2] == 0xBC) { error = xps_decode_jpegxr(ctx, buf, len, image); if (error) - return fz_rethrow(error, "could not decode JPEG-XR image"); + return fz_rethrow(error, "cannot decode JPEG-XR image"); } else if (memcmp(buf, "MM", 2) == 0 || memcmp(buf, "II", 2) == 0) { error = xps_decode_tiff(ctx, buf, len, image); if (error) - return fz_rethrow(error, "could not decode TIFF image"); + return fz_rethrow(error, "cannot decode TIFF image"); } else return fz_throw("unknown image file format"); |