[Python] Python: How to check if JPG has clipping path?

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    is there a solution to check if a JPG file has a clipping path?

    I know I can do it for example with ImageMagick CLI magick identify -verbose but my target solution should be way easier: Running a tkinter app and the user selects the image, Python checks if this image has 1 or many clipping paths and tkinter returns the information.

    I tried exifread but without success, looks like it can't check clipping paths.

    here are 2 images with clipping paths: https://github.com/pimcore/pimcore/files/4009504/images.zip

    Continue reading...

Compartilhe esta Página