Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure image size gets set when using the scaling path at export time.
  • Loading branch information
aurelienpierre committed Oct 19, 2024
1 parent 10e3093 commit ac67e57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/imageio.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,8 @@ int dt_imageio_export_with_flags(const int32_t imgid, const char *filename,
dt_imageio_resizing_factor_get_and_parsing(&_num, &_denum);
const double scale_factor = _num / _denum;
scale = fmin(scale_factor, 1.);
processed_height = pipe.processed_height * scale;
processed_width = pipe.processed_width * scale;
force_width = TRUE;
force_height = TRUE;
}
Expand Down

0 comments on commit ac67e57

Please sign in to comment.