Skip to content

cv2.resizeWindow doesn't upscale the displayed image anymore. #26180

@zrezke

Description

@zrezke

System Information

OpenCV python version: >=4.10.0.82
Operating System / Platform: Ubuntu 20.04 or Ubuntu 24.04
Python version: 3.9.20

Detailed description

Expected behaviour

Calling cv2.resizeWindow on a cv2.WINDOW_NORMAL namedWindow used to upscale the image to the new size if the window size was larger then the image size.

Actual behaviour

Since version 4.10.0.82 (at least this is the first pypi version where this issue occurs), the window gets resized, but the image will stay at it's original size if you resize the window to be bigger then the image. (downscaling still works as expected)

Steps to reproduce

Steps to reproduce

python3 -m pip install "opencv-python==4.10.0.84"

Run the attached example:

tar xvf MREResizeWindow.tar.gz && cd MREresizeWindow
python3 mre_resize_window.py

MREResizeWindow.tar.gz

Expected (ran on 4.9.0.80):

image

Actual (ran on 4.10.0.84):

image

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions