Jump to content
  • Excel learns to read pictures, thanks to Python


    Karlston

    • 490 views
    • 2 minutes
     Share


    • 490 views
    • 2 minutes

    Microsoft Excel is one of the most popular spreadsheet tools out there, especially among personal users and enterprise customers who are well-entrenched in Redmond's ecosystem. We recently learned that Excel is getting a couple of new digital inking tools, and soon, it's receiving an even more powerful capability that allows it to analyze images.

     

    Microsoft is enabling customers to analyze images in Excel through the existing integration with the Python programming language. Users can simply insert an image into a single cell in the workbook and then write Python code in a separate cell using the PY() encapsulation. The cell with the image can be referenced with the xl() function, so if your inserted image is in the cell A1, you can simply refer to it with xl("A1").

     

    In its blog post, Microsoft has demonstrated an example of detecting whether an image in Excel is blurry or sharp through a Laplacian filter. It has recommended using the Pillow library in Python as it contains multiple tools for opening images, processing them, analyzing their image data and metadata, applying filters and transformations, and more.

     

    Since image analysis can be computationally expensive, performance is an important consideration in this implementation too. As such, Microsoft has added a new Default input size for images option under the File > Options > Advanced > When calculating this workbook > Python in Excel menu too. It enables users to choose between multiple resolutions including the default option of Actual size, Small (320x240), Medium (640x480), and Large (1280x960). If you exceed the per-cell data limit, Excel will throw an error that also shows guidance about how you can adjust this setting.

     

    Image analysis in Excel with Python is available right now for Microsoft Insiders on the web, Windows (Version 2509, Build 19204.20002 or later), and Mac (Version 16.101, Build 25080524 or later). You can also provide feedback to the company directly through the Help > Feedback section in Excel.

     

    Source


    Hope you enjoyed this news post.

    Posted Thursday 14 August 2025 at 3:48 am AEST (my time).

    News posts... 2023: 5,800+ | 2024: 5,700+ | 2025 (till end of July): 3,458

    RIP Matrix | Farewell my friend  


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...