From: <enl...@li...> - 2000-10-30 00:01:34
|
Enlightenment CVS committal Author : gilbertt Project : misc Module : camE Modified Files: webcam.c Log Message: *sigh =================================================================== RCS file: /cvsroot/enlightenment/misc/camE/webcam.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- webcam.c 2000/10/27 23:41:47 1.5 +++ webcam.c 2000/10/30 00:01:33 1.6 @@ -311,6 +311,7 @@ time_t t; struct tm *tm; struct stat st; + char *tmp; if (grab_archive) { @@ -324,6 +325,9 @@ } while (stat(buffer, &st) == 0); imlib_context_set_image(im); + tmp = strrchr(buffer, '.'); + if (tmp) + imlib_image_set_format(tmp + 1); imlib_save_image(buffer); } } @@ -361,6 +365,7 @@ char filename[100]; int width, height, i; struct stat st; + char *tmp; /* read config */ sprintf(filename, "%s/%s", getenv("HOME"), ".camErc"); @@ -518,6 +523,9 @@ system(action_post_shot); } add_time_text(image, get_message(), width, height); + tmp = strrchr(temp_file, '.'); + if (tmp) + imlib_image_set_format(tmp + 1); imlib_save_image(temp_file); do_postprocess(temp_file); archive_jpeg(image); |