Extracting camera params from EXIF and XMP. #225
              
                
                  
                  
                    Answered
                  
                  by
                    bigcat88
                  
              
          
                  
                    
                      alfieroddan
                    
                  
                
                  asked this question in
                Q&A
              
            -
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            bigcat88
          
      
      
        Mar 27, 2024 
      
    
    Replies: 1 comment 1 reply
-
        examples % python3 pillow_dump_info.pyLook at example's code:         exif = image.getexif()
        if exif:
            exif = exif._get_merged_dict()  # noqa
        for k, v in exif.items():
            if isinstance(v, bytes) and len(v) > 8:
                print(f"{TAGS[k]} : size {len(v)} bytes")
            else:
                print(TAGS[k], ":", v)But as I know new Pillow versions has something better to get   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        alfieroddan
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Look at example's code:
But as I know new Pillow versions has something better to get
Exifinfo.You can take a look at examples here: python-pillow/Pillow#5863