When reading a jpeg, and the dimensions don't match, update the image dimension values so that the image at least looks right.
parent
e535267c51
commit
ffb8d68c74
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue