Skip to content

Commit

Permalink
Update img-txt_viewer.pyw - v1.90
Browse files Browse the repository at this point in the history
  - New:

    - `Find Duplicate Files`: Quickly find and separate duplicate images in your dataset.
      - This works by checking cross checking file hash - 2GB file limit. Can be used for all files
      - Built as a stand alone tool.

    - `Rename/convert img-txt Pairs`: Easily rename and convert your dataset in a clean format.
      - All images are converted to ".jpg" format to prevent duplicate filename issues.
      - JPG conversion quality is set to 100, this ensures a small file size and no visible compression will be added for most conversions.
      - Example: 00001.jpg, 00001.txt.

    - `Expand Current Image`: Expand images to a square resolution without cropping.
      - This tool makes an image square by extending its shorter side to match the length of its longer side, after rounding that length down to the nearest multiple of 8.
      - The empty space is then filled by expanding the border of pixels from the long side.

    - `Crop Image`: Crop the currently displayed image.
      - Currently only supports cropping by square (1:1) or freeform.
      - Double click to quickly create a 512x512 or 1024x1024 rectangle (automatically decided based on image size)
      - Right the image to open the context menu and select either Crop, Clear, or Open Directory.
      - Mousewheel to resize the rectangle.

    - `Flip Image`: Flip the currently displayed image horizontally.
    - `Rotate Image`: Rotate the the currently displayed image 90 degrees.
    - `Duplicate Pair`: Duplicate the currently displayed img-txt pair.

    - `Filter Pairs` Changes:
      - New option to display only empty text files.
      - Use `!` before the text to exclude any pairs containing that text.
      - Use `+` between text to include multiple strings when filtering.
      - Example: `!dog + cat` (remove dog pairs, display cat pairs)

    - `Resize Images` v1.01 Changes:
      - You can now choose image filetype for the resized output.
      - You can now set the `Resize Condition` to the following modes:
        - `Upscale and Downscale`, Resize the image to the new dimensions regardless of whether they are larger or smaller than the original dimensions.
        - `Upscale Only`, Resize the image if the new dimensions are larger than the original dimensions.
        - `Downscale Only`, Resize the image if the new dimensions are smaller than the original dimensions

    - `Batch Tag Delete` v1.07 Changes:
        - Significantly improved the speed tags are deleted.
        - You can now choose a new directory after opening the app.

    - Text Box changes:
        - The displayed text can now be refreshed from the right-click text_box context menu. (Hotkey: F5)
        - You can now select text and add it to the custom dictionary with the right click context menu.

    - Image info is now displayed above the current image (filename, resolution, size)
    - The last directory and index can now be quickly restored when launching the app. #21


<br>


  - Fixed:

    - Fixed image scaling regression that prevented images from scaling to fill the frame.
    - Fixed issue where the image index would no longer sort correctly after files were added or removed from the working directory.
    - Fixed issue where a new text file wasn't being created when saving the text box.
    - Fixed Auto-Save not triggering when loading a new directory.


<br>


  - Other changes:

    - "file_watcher" logic has been removed.
      - This was used to update the index or text box when changes occured outside the apps influence.
      - It was easier to remove then fix the issues with threading...

    - Removed the following from the script. These changes do not effect exe users:
        - Automatic check and install of Pillow.
        - Automatic check and download of dictionary files.
        - `threading` and `requests` imports removed.

    - UI changes.
        - The directory button is replaced with a text entry, browse/open buttons, and a right-click context menu.
        - Added descriptions below each tool along the bottom toolbar.
        - The save button can now be set to double height by right clicking it, or from the Options menu. #19
        - And other small changes.

    - Max Image size values have been slightly reduced to improve performance when scaling the image within the UI.
    - "Delete Pair" keyboard shortcut changed from `Del` to `Shift+Del`. #19
    - You can now pick any combination of autocomplete dictionaries.
  • Loading branch information
Nenotriple authored Feb 28, 2024
1 parent a327844 commit 2deff06
Showing 1 changed file with 932 additions and 346 deletions.
Loading

0 comments on commit 2deff06

Please sign in to comment.