Executable Release v1.90
I'm very happy to announce img-txt_viewer is 1 year old! 🎉🎈
I love knowing this app has helped at least a few people work faster and easier, and I want to thank everyone so much for your interest and support.
Here's some new tools, fixes, and changes for version 1.90:
-
New:
Find Duplicate Files
: Quickly find and separate duplicate images in your dataset.- This works by 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-click 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
-
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.
-
Other changes:
- "file_watcher" logic has been removed.
- This was used to update the index or text box when changes occurred outside the app’s control.
- It was easier to remove than fix the issues with threading...
- Removed the following from the script. These changes do not affect exe users:
- Automatic check and install of Pillow.
- Automatic check and download of dictionary files.
threading
andrequests
imports removed.
- UI changes:
- The directory button has been replaced with a text entry field, 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
toShift+Del
. #19 - You now have the flexibility to choose any combination from the available autocomplete dictionaries.
- "file_watcher" logic has been removed.
Thank you to @MNeMoNiCuZ and @younyokel for your suggestions!