Skip to content

Commit

Permalink
Change grayscale tiff export toast warning to dtprint
Browse files Browse the repository at this point in the history
  • Loading branch information
victoryforce committed Apr 12, 2024
1 parent 864a1a9 commit 89f5d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imageio/format/tiff.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of darktable,
Copyright (C) 2010-2023 darktable developers.
Copyright (C) 2010-2024 darktable developers.
darktable is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -240,7 +240,7 @@ int write_image(dt_imageio_module_data_t *d_tmp, const char *filename, const voi
}

if(d->shortfile && layers == 3)
dt_control_log(_("not a B&W image, will not export as grayscale"));
dt_print(DT_DEBUG_IMAGEIO, "[tiff export] '%s' is not a B&W image, not exporting as grayscale\n", filename);

TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, layers);
TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, (uint16_t)d->bpp);
Expand Down

0 comments on commit 89f5d01

Please sign in to comment.