_processed_image = ResizeImage(image, width, height, DefaultResizeFilter, 1.0, &exception);
if (_processed_image == NULL) {
- mm_util_error("Error: Image processing failed.");
+ mm_util_error("Error: Resizing Image failed.");
if (exception.severity != UndefinedException)
CatchException(&exception);
}
image->filename[MaxTextExtent-1] = '\0';
strncpy(image->filename, out_path, sizeof(image->filename));
if (WriteImage (image_info, image) == MagickFalse) {
- mm_util_error("Error: __mm_util_rotate_image failed.");
+ mm_util_error("Error: Writing Image failed.");
if (exception.severity != UndefinedException)
CatchException(&exception);
return;
}
- printf("[save to file] buffer[%p], width[%d], height[%d], size[%d], format [%d], out_path [%s]\n", buffer, width, height, size, format, out_path);
+ printf("[save to file] buffer[%p], width[%d], height[%d], size[%zu], format [%d], out_path [%s]\n", buffer, width, height, size, format, out_path);
__write_to_file(out_path, buffer, size);
return ret;
}
- printf("[get_buffer] buffer[%p], width[%d], height[%d], size[%d], format [%d]\n", *buffer, *width, *height, *size, *format);
+ printf("[get_buffer] buffer[%p], width[%d], height[%d], size[%zu], format [%d]\n", *buffer, *width, *height, *size, *format);
ret = mm_util_destroy_handle(dst_handle);
if (ret != MM_UTIL_ERROR_NONE) {