Fixed 2.0.2 image resizing possible bug

AndreaMarucci

Well-known member
Affected version
2.0.2
Setting max width in attachment and trying to upload a big attachment not exceeding the php size limit, bring you to a completely blank attachment.

If you try to upload something smaller that doesn't need to be resized, everything works well.

Schermata 2018-02-15 alle 18.05.43.webp

Schermata 2018-02-15 alle 18.07.52.webp
 
It does appear to be a bug. I think it's something to do with the 0 height.

If you set a value in the height field then it should work as expected.
 
Putting a higher value in the height resize the image correctly but shouldn't work like this since I'd like to resize images based on the width regardless of the height that should work also if I input 0 or no value I think.
 
Putting a higher value in the height resize the image correctly
That's what I was referring to. It's a workaround for now, and then we'll address the issue in a future update. If you only want the width to be considered, and not the height, just use a very large value for the height that's unlikely to be exceeded, such as 10000.
 
Top Bottom