Skip to content

Commit c909025

Browse files
control_log if export size is reduced because of memory restrictions
1 parent e4a126e commit c909025

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/imageio/imageio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,10 @@ gboolean dt_imageio_export_with_flags(const dt_imgid_t imgid,
12941294

12951295
const int processed_width = floor(scale * pipe.processed_width);
12961296
const int processed_height = floor(scale * pipe.processed_height);
1297+
if(scale == max_scale)
1298+
dt_control_log(_("export reduced to %dx%d because of memory restrictions"),
1299+
processed_width, processed_height);
1300+
12971301
const gboolean size_warning = processed_width < 1 || processed_height < 1;
12981302
dt_print(DT_DEBUG_IMAGEIO,
12991303
"[dt_imageio_export] %s%s imgid %d, %ix%i --> %ix%i (scale=%.4f, maxscale=%.4f)."

0 commit comments

Comments
 (0)