src/util/main.c
changeset 11 eb2a1472f084
parent 9 a31048ff76a2
child 17 baf3fe7c6354
equal deleted inserted replaced
10:6806a90d934f 11:eb2a1472f084
   116         const char *img_path = argv[i];
   116         const char *img_path = argv[i];
   117 
   117 
   118         log_debug("Loading image from: %s...", img_path);
   118         log_debug("Loading image from: %s...", img_path);
   119 
   119 
   120         // open
   120         // open
   121         if (pt_image_open(&image, ctx, img_path, PT_IMG_WRITE)) {
   121         if (pt_image_open(&image, ctx, img_path, PT_OPEN_UPDATE)) {
   122             log_errno("pt_image_open: %s", img_path);
   122             log_errno("pt_image_open: %s", img_path);
   123             continue;
   123             continue;
   124         }
   124         }
   125 
   125 
   126         log_info("Opened image at: %s", img_path);
   126         log_info("Opened image at: %s", img_path);