When reading a jpeg, and the dimensions don't match, update the image dimension values so that the image at least looks right.

pull/3778/head
Isaac Connor 2023-10-01 09:58:59 -04:00
parent e535267c51
commit ffb8d68c74
1 changed files with 2 additions and 0 deletions

View File

@ -1021,6 +1021,8 @@ bool Image::ReadJpeg(const std::string &filename, unsigned int p_colours, unsign
if ((width != new_width) || (height != new_height)) {
Debug(9, "Image dimensions differ. Old: %ux%u New: %ux%u", width, height, new_width, new_height);
width = new_width;
height = new_height;
}
switch (p_colours) {