[?] How to permanently disable the 8-bit TIFF warning

  • Follow


Hello all,

whenever I open a 16-bit TIFF with gimp, a warning dialog
about Gimps inability to work with 16-bit color depth opens.
I know this dialog for years and want to disable it permanently,
as it finally nags me after some 10s of images ;-)

Any idea?

Thanks,
Frank
0
Reply Fr 12/15/2008 10:36:05 AM

"Fr@nk Stef@ni" <fs@despammed.com> wrote:
>Hello all,
>
>whenever I open a 16-bit TIFF with gimp, a warning dialog
>about Gimps inability to work with 16-bit color depth opens.
>I know this dialog for years and want to disable it permanently,
>as it finally nags me after some 10s of images ;-)
>
>Any idea?
>
>Thanks,
>Frank

Edit file plug-ins/common/file-tiff-load.c/ at line
1028, and remove, comment out, or add conditional
compilation for these lines:

 if (bps == 16)
   g_message (_("Warning:\n"
     "The image you are loading has 16 bits per channel. GIMP "
     "can only handle 8 bit, so it will be converted for you. "
     "Information will be lost because of this conversion."));

And then recompile GIMP.

Note: The line numbers are from the bleeding edge 2.7.0
development code, downloaded via SVN yesterday.  Your
version of GIMP might have them at different line
numbers, and for all I know it might be worded slightly
different too.  Even the file name may have changed...

If it isn't there on your version, use /grep/ to find it.

-- 
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)              floyd@apaflo.com
0
Reply floyd 12/15/2008 1:29:25 PM


Floyd L. Davidson schrieb:
> Edit file plug-ins/common/file-tiff-load.c/ at line
> 1028, and remove, comment out, or add conditional
> compilation for these lines:
> 
>  if (bps == 16)
>    g_message (_("Warning:\n"
>      "The image you are loading has 16 bits per channel. GIMP "
>      "can only handle 8 bit, so it will be converted for you. "
>      "Information will be lost because of this conversion."));
> 
> And then recompile GIMP.

Thanks for the hint, though I won't recompile Gimp
as this is a production system. Compilation usually
depends on lots of library versions which are not
on this system [OpenSuSE-10.3 / Gimp-2.4.6]. I need
to keep things as consistent and clean as possible.

Regards,
Frank
0
Reply Fr 12/15/2008 4:41:45 PM

On 15 Dez., 11:36, "Fr@nk Stef@ni" <f...@despammed.com> wrote:
> Hello all,
>
> whenever I open a 16-bit TIFF with gimp, a warning dialog
> about Gimps inability to work with 16-bit color depth opens.

Add an error console dialog to any of the docks, and then the messages
should go there.


HTH,
Michael
0
Reply Michael 12/17/2008 10:14:21 AM

Michael Schumacher schrieb:
> On 15 Dez., 11:36, "Fr@nk Stef@ni" <f...@despammed.com> wrote:
>> Hello all,
>>
>> whenever I open a 16-bit TIFF with gimp, a warning dialog
>> about Gimps inability to work with 16-bit color depth opens.
> 
> Add an error console dialog to any of the docks, and then the messages
> should go there.

Wow ... this is an excellent work around for my needs!
I attached an error consoleas a new tool box tab and
habe a peacefull time now :-)

Great thanks!

Frank
0
Reply Fr 12/17/2008 12:25:10 PM

Michael Schumacher schrieb:
> On 15 Dez., 11:36, "Fr@nk Stef@ni" <f...@despammed.com> wrote:
>> Hello all,
>>
>> whenever I open a 16-bit TIFF with gimp, a warning dialog
>> about Gimps inability to work with 16-bit color depth opens.
> 
> Add an error console dialog to any of the docks, and then the messages
> should go there.

Wow ... this is an excellent work around for my needs!
I attached an error console as a new tool box tab and
have a peacefull time now :-)

Great thanks!

Frank
0
Reply Fr 12/17/2008 1:40:03 PM

5 Replies
166 Views

(page loaded in 0.09 seconds)

5/24/2013 7:58:06 PM


Reply: