Search code examples
pythonimagescreenfullscreen

how to display image on full screen mode


I'm trying display any image in full screen mode with os.startfile('image.png')

How I can open my picture on full screen mode with default visualizator? Through PYTHON .

example code:

import os
os.startfile('image.png')

EDIT: can't I do it without using opencv?


Solution

  • You can just execute the command with the image name.

    import os
    os.system('image.png')
    

    It will open the image in default image viewer.

    Related option for full screen using opencv