Skip to content

Executable Release v1.96

Latest
Compare
Choose a tag to compare
@Nenotriple Nenotriple released this 29 Nov 06:21
· 10 commits to main since this release
867ba75

This release introduces several new features and improvements, including AutoTag for automatic image tagging using ONNX vision models (WD14), revamped Batch Tag Edit and Crop tools, a Thumbnail Panel for quick navigation, and an Edit Image Panel for adjusting image properties. Additionally, numerous bugs have been fixed, such as issues with the Delete Pair tool, image quality degradation, and memory leaks.

The app now targets Windows 11, providing a more modern look and feel for most widgets.

Starting from this release, the Lite version will no longer be provided. All tools are now built-in.


View full release notes...

Full commit history: #36


New:

  • AutoTag: Automatically tag images using ONNX vision models like wd-v1-4-vit-tagger-v2.
    • Download additional models from Hugging Face.
    • Place models in subfolders within the onnx_models directory, located in the same folder as this program. The subfolder name will be used as the model name.
    • Each model subfolder should contain a model.onnx file and a selected_tags.csv file.
    • Auto-Tagging was primarily tested with the wd-v1-4-moat-tagger-v2 model.
  • Batch Tag Edit: Previously known as Batch Tag Delete, this tool has been completely reworked for more versatile tag editing.
    • The interface is now more convenient and user-friendly, allowing you to see all pending changes before committing them.
    • It is no longer supported as a standalone tool.
  • Batch Resize Images: Integrated into the main app.
    • NEW: A timer is now displayed in the bottom row.
    • FIXED: The following resize modes not working/causing an error: Longer Side, and Height.
    • FIXED: The resize operation is now threaded, allowing the app to remain responsive during the resizing process.
  • Find Duplicate Files:
    • Integrated into the main app.
    • New Feature: Added "Move Captions" option.
      • Moves text pairs when found. Only works in "Images" scanning mode.
  • Crop Tool: Completely reworked with new features and improved usability.
    • Includes all standard cropping features.
    • Special Auto fixed aspect ratio mode for quick cropping based on the image's aspect ratio and predefined aspect ratios.
  • Thumbnail Panel: Displayed below the current image for quick navigation.
  • Edit Image Panel: Enabled from the options/image menu, this section allows you to edit the Brightness, Contrast, Saturation, Sharpness, Highlights, and Shadows of the current image.
  • Edit Image: Open the current image in an external editor, with MS Paint as the default.
    • Running Set Default Image Editor will open a dialog to select the executable (or .py, .pyw) path to use as the default image editor.
    • This should work with any app that accepts a file path as a launch argument (e.g., GIMP, Krita, Photoshop).
  • Create Wildcard From Captions: Combine all image captions into a single text file, each set of image captions separated by a newline.
  • Copy Command: Added to the right-click textbox context menu.
  • Last Command: Added to the index entry right-click context menu to quickly jump to the last img-txt pair.
  • Additional Upscale Models: Added AnimeSharp-4x and UltraSharp-4x.
  • NCNN Upscale Models: Additional models can now be loaded by placing them in the models directory.
  • Insert Suggestion: Now you can insert a suggestion by simply clicking it.
  • Guided Setup: A quick guided setup will run on the app's first launch, or if the settings file is deleted/reset.
    • This will set the preferred autocomplete dictionaries and matching settings.
  • Close Window Shortcut: Press CTRL+W to close the current window.
  • Danbooru (Safe): Added to the list of available dictionaries, a great choice to load with the English dictionary.
  • Easter Egg Game: Can be opened from the ImgTxtViewer About Window.

Fixed:

  • Fixed issue where the Delete Pair tool would overwrite the next index with the deleted text. #31
  • Fixed an issue that was degrading the quality of the displayed image and not respecting the Image Display Quality setting.
  • Fixed a memory leak that could occur whenever the primary image is displayed.
  • Fixed Next/Previous button not properly displaying their relief when clicked.
  • Fixed an issue where landscape images were improperly scaled, leading to an incorrect aspect ratio.
    • Additionally, large landscape images now scale to fit the window frame better.
  • Fixed Open Text Directory... not respecting the actual filepath if set by Set Text File Path....
  • Fixed issue where the file lists were not updated when using the internal function jump_to_image().
  • Fixed an issue where the alt text path could be set to . when declining to reload the last directory.
  • Fixed a bug where the window height would enlarge slightly when dragging the window from by the displayed image.
  • Fixed the following tools not respecting the Loading Order > Descending setting, causing them to jump to the wrong index:
    • Image Grid, Upscale Image, Resize Image.
  • Potential fix for the Stats > PPI calculation returning "0.00".
  • If clean-text is enabled: The primary text box is now properly refreshed when saving.
  • Fixed an issue when deleting tags that are a substring of another tag using middle-mouse-click. #38
  • Fixed an issue where the system clipboard would become unresponsive after deleting a tag with the middle mouse button. #38
  • Fixed an issue where settings were not restored when choosing to not reload the last directory.
  • Fixed an error when loading the app and my_tags.csv didn't exist.
  • Fixed an issue where suggestions weren't generated from my_tags.csv if no primary dictionary was loaded.
  • Reloading the last directory is a little faster / smoother now.

Other Changes:

  • Autocomplete suggestions are now cached, so re-typing the same words returns suggestions quicker.
    • Some pre-caching is done for Autocomplete suggestions, which does slow down the initial launch slightly.
  • Using Open Current Directory... will now automatically select the current image in the file explorer. #30
    • The Open button will also select the current image if the path being opened is the same as the image path.
  • The Image info (the stats displayed above the image) is now cached for quicker access.
  • Zip Dataset... Now only zips images and text files in the selected directory, omitting subfolders.
  • The Options and Tools menus have been reorganized.
  • The color mode is now displayed in the image info panel.
  • You can now close the Crop Image window with the Escape key.
  • The message box is now removed.
    • You can now check the title for a visual indicator of the text state.
    • All tools that used the message box for notifications now use a message popup.
  • Custom and duplicate highlights now use a range of pastel colors.
  • Saving using the CTRL + S hotkey will now highlight the save button for a brief moment.
  • The MyTags tab got an overhaul with more features.
  • The target operating system for this project is now Windows 11, resulting in some UI changes.
    • Widgets are now made with ttk (when appropriate) for better styling on Windows 11.

Project Changes:

  • Upscale, Batch Upscale: v1.05:
    • FIXED: Prevent the app from hanging while upscaling a GIF.
    • Batch Upscale: Added a label to display the number of images upscaled and the total number of images.
    • Batch Upscale: Added a timer and ETA label to show the total time taken and the estimated time remaining.
    • Batch Upscale: Entry path ToolTips are now updated when the path is changed.
    • Widgets are now made with ttk (when appropriate) for better styling on Windows 11.
  • TkToolTip: v1.06:
    • NEW: justify parameter: Configure text justification in the tooltip. (Default is "center")
    • NEW: wraplength parameter: Configure the maximum line width for text wrapping. (Default is 0, which disables wrapping)
    • NEW: fade_in and fade_out parameters: Configure fade-in and fade-out times. (Default is 75ms)
    • NEW: origin parameter: Configure the origin point of the tooltip. (Default is "mouse")
    • FIXED: Issue where the underlying widget would be impossible to interact with after hiding the tooltip.
    • CHANGE: Now uses TkDefaultFont instead of Tahoma as the default font for the tooltip text.
    • CHANGE: The default background color is now "#ffffee", less yellow and more "off-white".
  • PopUpZoom: v1.02:
    • NEW: Rounded Corners The popup now supports rounded corners. (Default: 30px)
  • Batch Crop (v1.03), Resize Images (v1.02), Image Grid (v1.04):
    • Widgets are now made with ttk (when appropriate) for better styling on Windows 11.
  • crop_image has been replaced with CropUI.

Thank you to @UrzasLegacy for your help fixing bugs, and helping with new features!