1. 19 May, 2024 1 commit
  2. 18 May, 2024 2 commits
  3. 17 May, 2024 3 commits
  4. 16 May, 2024 2 commits
  5. 15 May, 2024 1 commit
  6. 14 May, 2024 4 commits
  7. 13 May, 2024 1 commit
  8. 12 May, 2024 7 commits
  9. 10 May, 2024 2 commits
  10. 09 May, 2024 2 commits
    • shawnington's avatar
      Added generic wrapper function node_helpers.pillow to fix PIL issues #4472 and #2445 (#3422) · 0fecfd2b
      shawnington authored
      * Update node_helpers.py to use generic pillow wrapper to resolve multiple meta-data related issues.
      
      replaced open_image function with a generic pillow function that takes Pil functions as a dependency injection and applies the ImageFile.LOAD_TRUNCATED_IMAGES try except fix to them. 
      
      This provides an extensible function to handle related errors that can wrap offending functions when discovered without the need to repeat code.
      
      * Update a few Pil functions to use node_helpers.pillow wrapper
      
      Update a Pil function calls in a few locations to use the generic node_helpers.pillow wrapper that takes the function as a dependency injection and uses the try except method with ImageFIle.LOAD_TRUNCATED_IMAGES solution
      
      * Corrected comment in issue #s fixed.
      
      * Update node_helpers.py to remove import of Image from PIL
      
      import of Image is no longer required as functions are Injected
      0fecfd2b
    • comfyanonymous's avatar
      Remove warnings that confuse people. · 93e876a3
      comfyanonymous authored
      93e876a3
  11. 08 May, 2024 1 commit
  12. 07 May, 2024 3 commits
  13. 06 May, 2024 1 commit
  14. 05 May, 2024 2 commits
  15. 04 May, 2024 2 commits
    • comfyanonymous's avatar
      Only set LOAD_TRUNCATED_IMAGES when if the Image open fails. · 72508a8d
      comfyanonymous authored
      Document which PIL issues this works around.
      72508a8d
    • shawnington's avatar
      Fixed Issue with LoadImage node when loading PNG files with embedded ICC profiles. (#3316) · 0d45efb7
      shawnington authored
      * Fix issue with how PIL loads small PNG files nodes.py
      
      Added flag to prevent ValueError: Decompressed Data Too Large
      when loading PNG images with large meta data such as large embedded color profiles
      
      * Update LoadImage node to fix error when loading PNG's in nodes.py
      
      Fixed Value Error: Decompressed Data Too Large thrown by PIL when attempting to opening PNG files with large embedded ICC colorspaces by setting the follow flag to true when loading png images:  ImageFile.LOAD_TRUNCATED_IMAGES = True
      
      * Update node_helpers.py to include open_image helper function
      
      open_image includes try except to catch Pillow Value Errors that occur when large ICC profiles are embedded in images.
      
      * Update LoadImage node to use open_image helper function inplace of Image.open
      
      open_image helper function in node_helpers.py  fixes a Pillow error when attempting to open images with large embedded ICC profiles by adding an exception handler to load the image with truncated meta data if regular loading is not possible.
      0d45efb7
  16. 03 May, 2024 1 commit
  17. 02 May, 2024 2 commits
  18. 01 May, 2024 3 commits