1 --- xsane-0.995/src/xsane-preferences.c.orig 2008-08-15 13:41:32.397061000 +0800
2 +++ xsane-0.995/src/xsane-preferences.c 2008-08-15 13:52:53.039067000 +0800
4 7.0, /* png_compression */
5 6.0, /* tiff_zip_compression */
6 COMPRESSION_PACKBITS, /* tiff_compression16_nr */
7 - COMPRESSION_JPEG, /* tiff_compression8_nr */
8 + COMPRESSION_PACKBITS, /* tiff_compression8_nr */
9 COMPRESSION_CCITTFAX3, /* tiff_compression1_nr */
10 1, /* save_devprefs_at_exit */
11 1, /* overwrite_warning */
12 --- xsane-0.995/src/xsane-setup.c.orig 2008-08-15 13:45:06.384228000 +0800
13 +++ xsane-0.995/src/xsane-setup.c 2008-08-15 13:43:17.138552000 +0800
16 for (i=1; i <= TIFF_COMPRESSION8_NUMBER; i++)
18 + /* Due to JEPG-related pseudo tags aren't supported by libtiff, disable JEPG compression option */
19 + if (strcmp (tiff_compression8_strings[i-1].name, MENU_ITEM_TIFF_COMP_JPEG) == 0)
21 tiff_compression_item = gtk_menu_item_new_with_label(tiff_compression8_strings[i-1].name);
22 gtk_container_add(GTK_CONTAINER(tiff_compression_menu), tiff_compression_item);
23 g_signal_connect(GTK_OBJECT(tiff_compression_item), "activate", (GtkSignalFunc) xsane_setup_tiff_compression8_callback, (void *) tiff_compression8_strings[i-1].number);