comparison src/image.c @ 188:0584cb78aa14

write comment and keywords to xmp, sidecars are used if exist
author nadvornik
date Sun, 16 Mar 2008 10:32:52 +0000
parents c01dd7c9c7dc
children f6e307c7bad6
comparison
equal deleted inserted replaced
187:9eafc4957f1a 188:0584cb78aa14
423 if (!image_get_pixbuf(imd)) return; 423 if (!image_get_pixbuf(imd)) return;
424 424
425 if (exif_rotate_enable || 425 if (exif_rotate_enable ||
426 (imd->color_profile_enable && imd->color_profile_use_image) ) 426 (imd->color_profile_enable && imd->color_profile_use_image) )
427 { 427 {
428 exif = exif_read(imd->image_fd->path, (imd->color_profile_enable && imd->color_profile_use_image)); 428 exif = exif_read_fd(imd->image_fd, (imd->color_profile_enable && imd->color_profile_use_image));
429 } 429 }
430 430
431 if (exif_rotate_enable && exif) 431 if (exif_rotate_enable && exif)
432 { 432 {
433 gint orientation; 433 gint orientation;
622 image_change_pixbuf(imd, imd->prev_pixbuf, image_zoom_get(imd)); 622 image_change_pixbuf(imd, imd->prev_pixbuf, image_zoom_get(imd));
623 if (imd->prev_color_row >= 0) 623 if (imd->prev_color_row >= 0)
624 { 624 {
625 ExifData *exif = NULL; 625 ExifData *exif = NULL;
626 626
627 if (imd->color_profile_use_image) exif = exif_read(imd->image_fd->path, TRUE); 627 if (imd->color_profile_use_image) exif = exif_read_fd(imd->image_fd, TRUE);
628 image_post_process_color(imd, imd->prev_color_row, exif); 628 image_post_process_color(imd, imd->prev_color_row, exif);
629 exif_free(exif); 629 exif_free(exif);
630 } 630 }
631 success = TRUE; 631 success = TRUE;
632 } 632 }