1. 02 Jul, 2024 2 commits
    • comfyanonymous's avatar
      Remove some empty lines. · 2f032016
      comfyanonymous authored
      2f032016
    • shawnington's avatar
      Fix to #3465. Prevent, resaving of duplicate images if overwrite not specified (#3472) · 52aaee25
      shawnington authored
      * Fix to #3465. Prevent the, resaving of duplicate images if overwrite not specified
      
      This is a fix to #3465 
      
      Adds function compare_image_hash to do a sha256 hash comparison between an uploaded image and existing images with matching file names. 
      
      This changes the behavior so that only images having the same filename that are actually different are saved to input, existing images are instead now opened instead of resaved with increment. 
      
      Currently, exact duplicates with the same filename are resave saved with an incremented filename in the format:
      
      <filename> (n).ext 
      
      with the code: 
      
      ```
      while os.path.exists(filepath): 
                              filename = f"{split[0]} ({i}){split[1]}"
                              filepath = os.path.join(full_output_folder, filename)
                              i += 1
      ```
      
      This commit changes this to: 
      
      ```
      while os.path.exists(filepath): 
                              if compare_image_hash(filepath, image):
                                  image_is_duplicate = True
                                  break
                              filename = f"{split[0]} ({i}){split[1]}"
                              filepath = os.path.join(full_output_folder, filename)
                              i += 1
      ```
      
      a check for if image_is_duplicate = False is done before saving the file. 
      
      Currently, if you load the same image of a cat named cat.jpg into the LoadImage node 3 times, you will get 3 new files in your input folder with incremented file names.
      
      With this change, you will now only have the single copy of cat.jpg, that will be re-opened instead of re-saved. 
      
      However if you load 3 different images of cats named cat.jpg, you will get the expected behavior of having:
      cat.jpg
      cat (1).jpg
      cat (2).jpg
      
      This saves space and clutter. After checking my own input folder, I have 800+ images that are duplicates that were resaved with incremented file names amounting to more than 5GB of duplicated data.
      
      * fixed typo in expression
      52aaee25
  2. 20 Jun, 2024 1 commit
  3. 19 Jun, 2024 1 commit
  4. 01 May, 2024 1 commit
    • Garrett Sutula's avatar
      Add TLS Support (#3312) · bacce529
      Garrett Sutula authored
      * Add TLS Support
      
      * Add to readme
      
      * Add guidance for windows users on generating certificates
      
      * Add guidance for windows users on generating certificates
      
      * Fix typo
      bacce529
  5. 11 Mar, 2024 3 commits
  6. 25 Feb, 2024 1 commit
  7. 29 Jan, 2024 1 commit
  8. 08 Jan, 2024 1 commit
    • pythongosssss's avatar
      Store user settings/data on the server and multi user support (#2160) · 235727fe
      pythongosssss authored
      * wip per user data
      
      * Rename, hide menu
      
      * better error
      rework default user
      
      * store pretty
      
      * Add userdata endpoints
      Change nodetemplates to userdata
      
      * add multi user message
      
      * make normal arg
      
      * Fix tests
      
      * Ignore user dir
      
      * user tests
      
      * Changed to default to browser storage and add server-storage arg
      
      * fix crash on empty templates
      
      * fix settings added before load
      
      * ignore parse errors
      235727fe
  9. 06 Jan, 2024 1 commit
  10. 04 Jan, 2024 1 commit
  11. 02 Jan, 2024 1 commit
  12. 28 Nov, 2023 1 commit
  13. 20 Nov, 2023 1 commit
  14. 29 Oct, 2023 1 commit
  15. 03 Oct, 2023 1 commit
  16. 19 Sep, 2023 1 commit
  17. 09 Sep, 2023 1 commit
  18. 07 Sep, 2023 4 commits
  19. 30 Aug, 2023 1 commit
  20. 29 Aug, 2023 2 commits
  21. 28 Aug, 2023 1 commit
  22. 26 Aug, 2023 1 commit
  23. 20 Aug, 2023 2 commits
  24. 04 Aug, 2023 1 commit
  25. 19 Jul, 2023 1 commit
  26. 13 Jul, 2023 1 commit
  27. 24 Jun, 2023 1 commit
  28. 15 Jun, 2023 1 commit
  29. 12 Jun, 2023 1 commit
  30. 05 Jun, 2023 3 commits
    • space-nuko's avatar
      Preview sampled images with TAESD · b4f434ee
      space-nuko authored
      b4f434ee
    • comfyanonymous's avatar
      Limit preview to webp and RGB jpeg. · 2ec980bb
      comfyanonymous authored
      2ec980bb
    • Dr.Lt.Data's avatar
      improve: lightweight preview to reduce network traffic (#733) · 9f3a19b7
      Dr.Lt.Data authored
      
      
      * To reduce bandwidth traffic in a remote environment, a lossy compression-based preview mode is provided for displaying simple visualizations in node-based widgets.
      
      * Added 'preview=[image format]' option to the '/view' API.
      * Updated node to use preview for displaying images as widgets.
      * Excluded preview usage in the open image, save image, mask editor where the original data is required.
      
      * Made preview_format parameterizable for extensibility.
      
      * default preview format changed: jpeg -> webp
      
      * Support advanced preview_format option.
      - grayscale option for visual debugging
      - quality option for aggressive reducing
      
      L?;format;quality?
      
      ex)
      jpeg => rgb, jpeg, quality 90
      L;webp;80 => grayscale, webp, quality 80
      L;png => grayscale, png, quality 90
      webp;50 => rgb, webp, quality 50
      
      * move comment
      
      * * add settings for preview_format
      * default value is ''(= don't reencode)
      
      ---------
      Co-authored-by: default avatarLt.Dr.Data <lt.dr.data@gmail.com>
      9f3a19b7