Releases: Nenotriple/img-txt_viewer
Executable Release v1.94
v1.94 changes:
- New:
- New option:
Toggle Zoom
, This allows you to hover the mouse over the current image and display a zoomed in preview.- Use the Mouse-Wheel to zoom in and out.
- Use Shift+Mouse-Wheel to increase or decrease the popup size.
- New option:
- Fixed:
Image Grid
, Fixed issue where supported file types were case sensitive, leading to images not appearing, and indexing issues.
- Other changes:
- Improved performance of Autocomplete by optimizing: data loading, similar names, string operations, and suggestion retrieval. Up to 50% faster than v1.92
Image Grid
, Now reuses image cache across instances to speed up loading.
🛑 lite Version has the following features removed:
Batch Tag Delete
,Batch Resize Images
,Find Dupe File
, andUpscale
Executable Release v1.93.1
v1.93.1 changes:
- New:
- New autocomplete matching modes:
Match Whole String
, andMatch Last Word
732120eMatch Whole String
, This option works exactly as before. All characters in the selected tag are considered for matching.Match Last Word
, This option will only match (and replace) the last word typed. This allows you to use autocomplete with natural sentences. You can type using an underscore as a space to join words together.
- New option for image grid view:
Auto-Close
, Unchecking this option allows you to keep the image grid open after making a selection. 67593f4 - New Tool:
Rename img-txt pairs
, Use this to clean-up the filenames of your dataset without converting the image types. 8f24a7e - You can now choose the crop anchor point when using
Batch Crop Images
. 9d247ea
- New autocomplete matching modes:
- Fixed:
- Fixed issue where Autocomplete was broken with the executable version. (incorrect build command)
- Fixed issue #23 where initially loading a directory could result in the first text file displayed being erased. ae56143
- Fixed issue where manually setting a directory, the text box and image index were not reset. 7874a13
- Other changes:
- Improved performance of Autocomplete, by handling similar names more efficiently. Up to 40% faster than before. d8be0f2
- Improved performance when viewing animated GIFs by first resizing all frames to the required size and caching them. c8bd32a
- Improved efficiency of TkToolTip by reusing tooltip widgets, adding visibility checks, and reducing unnecessary method calls. 8b6c0dc
- Slightly faster image loading by using PIL's thumbnail function to reduce aspect ratio calculation. 921b4d3
- Project Changes:
Batch Resize Images
: v1.06 19d5b4d- See full list of changes here: https://github.com/Nenotriple/batch_resize_images/releases
Upscale
: v1.02 616ddaa- The current and total GIF frames are now displayed in the UI.
🛑 lite Version has the following features removed:
Batch Tag Delete
,Batch Resize Images
,Find Dupe File
, andUpscale
Executable Release v1.92
v1.92 changes:
- New:
- New tag list
Derpibooru
: Created from the top ~100k Derpibooru imageboard tags with additional filtering. - Image Grid: View all images as thumbnails in an overview. Access it from the 'Tools' menu, or from the right-click image menu.
- Click an image to quickly jump to it.
- Images without a text pair will have a small red flag added to them.
- GIF support has been added to these tools: Upscale, Resize, Rotate, and Flip.
- Alternate text path:
- If an alternate text path has been set, that path will be restored when reloading the last directory on startup.
- A small indicator to the left of the directory entry changes to blue when an alternate text path is set.
- Hovering the mouse over this indicator will display a tooltip showing the text path.
- The mouse wheel can now be used on the index entry to cycle through img-txt pairs.
- New tag list
- Fixed:
- Fixed issue where "rename_and_convert_images" would save JPG in RGBA mode, which isn't supported.
- Fixed error that occurred when double-clicking the image preview to drag the window.
- Tons of small fixes.
- Other changes:
- Small UI tweaks.
- Project Changes:
- Refactored img_txt_viewer repo structure.
Upscale
: (v1.01):- GIF support added.
- After upscaling, the index is updated to the upscaled image.
- Fixed a minor typo in UI.
Resize Image
: (v1.01):- GIF support added.
- After upscaling, the index is updated to the resized image.
- Improved error handling when processing an image.
Batch Resize Images
: (v1.03):- New output type:
Filetype: AUTO
, use this to output with the same filetype as the input image. - New options:
Overwrite Output
, when disabled, conflicting files will have "_#" appended to the filename. - Cancel button: Stop the resize operation without closing the window.
- An image counter now displays the number of images in the selected path along with a running count of all resized images.
- Fixed issue where files with the same basename but different extensions would be overwritten when converting to the same type.
- Text descriptions are now consolidated into a help button/popup.
- Many small UI tweaks and adjustments.
- New output type:
🛑 lite Version has the following features removed:
Batch Tag Delete
,Batch Resize Images
,Find Dupe File
, andUpscale
Executable Release v1.91
v1.91 changes:
- New:
- New Tool:
Upscale Image
, Upscale a single image usingrealesrgan-ncnn-vulkan
. - New Tool:
Resize Image
, This new tool allows you to resize the current image. - New Tool:
Batch Crop Images
, Automatically resize and crop images to a specific size (center crop). - New option:
Suggestion Threshold
, Use this to tune the performance of autocomplete, which may reduce suggestion diversity. - New option:
Image Display Quality
, Adjust the quality of the displayed image. 'High' mostly looks/performs the same as before. - New option:
Separate Text File Loading
, Load text files from another path via the "Browse..." button right-click context menu. - New hotkey: Press
CTRL+R
to go to a random img-txt pair. - The scale of the image is now displayed in the info bar.
- You can now move the window around by clicking and dragging the current image with the mouse.
- New Tool:
- Fixed:
Goto Random
now always returns a different index.Autocomplete
now correctly allows typing a 'similar name' and matching it to the 'true name'.- Text cleanup no longer converts all text to lowercase.
- Newline characters are no longer converted to commas when saving text.
Rename and Convert img-txt Pairs
now handles files with duplicate basenames more effectively.- Improved handling of
.jfif
and.jpg_large
files. - utf-8 encoding is now enforced when loading text files.
- Fixed
FileNotFoundError
when the app tried to load an image that no longer exists. Like when a file is renamed. - Loading a corrupted image will now remove the offending image from the index (without deleting it) and prevent the app from crashing.
- The directory entry now reverts to the current working path when moving to the next/prev pairs.
Expand Image
andUndo Delete
now correctly jump to the appropriate pair.- Fixed right-click not taking focus on the text box.
- Fixed
Expand Image
error when working with ".webp" files. - Fixed
Expand Image
error when expanding an image with an uppercase filetype. - Pressing "Clear" on the Text Filter tool now restores the disabled widgets when clearing
Empty Files
. settings.cfg
is removed on version mismatch.- Quickly scrolling the mouse wheel to cycle through pairs is now smoother, with less chance of skipping.
- Improved error handling for various other minor issues.
- Other changes:
- Significant speedup when loading and scaling an image in the UI. Average time before ~45ms, now ~5ms.
- Using
Undo Delete Pair
now displays the files that will be restored. - Font size now updates as the slider is dragged instead of when released.
- Toggling the
Auto-Save
checkbutton will now check if the text file has changed and will properly display the state. - The message box now displays "No Change" while typing if the text box is the same as the current text file.
- Improved UI logic for widgets in the "Filter" tab, the autocomplete suggestion text, and other small tweaks.
Big Comma Mode
has been removed.dictionary.csv
: Removed all words shorter than 3 characters. ~900 words removed.settings.cfg
now tracks these user-settings:Auto-Save
,Cleaning Text
,Big Save Button
,Highlighting Duplicates
,App Version
.- Inserting a suggestion no longer creates leading or trailing spaces.
List View
andMiddle-click to delete tag
are now disabled if text cleanup is also disabled.
- Project Changes:
Batch Resize Images
: (v1.02):- The
resize_images.py
script has been renamed tobatch_resize_images.py
. - A new resize mode,
Percentage
, has been added. This allows you to resize images by a percentage scaling factor. - The labels for inputs now change based on the selected resize mode.
- The
Batch Tag Delete
: (v1.08):- Long folder paths are now displayed more effectively in the UI.
Find Duplicate Files
: (v1.01):- The
Pillow
import has been removed, reducing the size of the executable file by ~75%.
- The
🛑 lite Version has the following features removed:
Batch Tag Delete
,Batch Resize Images
,Find Dupe File
, andUpscale
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!
Executable Release v1.85
This is released as a portable exe file for those who don't have Python installed
Download the source file if you just want this version of the Python script.
v1.84 changes:
- New:
- New Text Tool
Filter Pairs
: Use this to search all text files and filter the img-txt pairs to display only those that include the matched text.- Also supports regular expressions.
- New Text Tool
Active Highlights
: Use this to always highlight certain text.- Use
+
to highlight multiple strings of text, (Note the spaces!). Example: dog + cat
- Use
- New Text Tool
Executable Release v1.84
This is released as a portable exe file for those who don't have Python installed
Download the source file if you just want this version of the Python script.
v1.84 changes:
- New:
- New tool:
Resize Images
: You can find this in the Tools menu.- Resize operations: Resize to Resolution, Resize to Width, Resize to Height, Resize to Shorter Side, Resize to Longer Side
- Just like "batch_tag_delete.py", "resize_images.py" is a stand-alone tool. You can run it 100% independently of img-txt_viewer.
- Images will be overwritten when resized.
- New option:
Colored Suggestions
, Use this to enable or disable the color coded autocomplete suggestions.
- New tool:
- Fixed:
- Fixed suggestions breaking when typing a parentheses.
- Other changes:
- Batch Tag Delete is no longer bundled within img-txt_viewer. This allows you to run them separately.
Batch Tag Delete
v1.06 changes:
- Fixed:
- Fixed tag list refreshing twice
- Fixed multi-tag delete when "batch_tag_delete" is ran from "img-txt_viewer"
Executable Release v1.83
This is released as a portable exe file for those who don't have Python installed
Download the source file if you just want this version of the Python script.
v1.83 changes: 742e54a
- Fixed:
- Fix text box duplicating when selecting a new directory.
- Fixed some small issues with the file watcher and image index.
- Other changes:
- Minor code cleanup and internal changes.
Executable Release v1.82
This is released as a portable exe file for those who don't have Python installed
Download the source file if you just want this version of the Python script.
v1.82 changes: f62afca
The biggest visible change this release is the addition of a new Paned Window that now holds all text tools. (excluding Batch Tag Delete)
This makes it way more simple and easier to use these tools.
- New:
- Search and Replace, Prefix Text, Append Text, Font Options, and Edit Custom Dictionary are now in a convient tabbed interface below the text box.
- You can now refresh the custom dictionary
- Fixed:
- Saving a blank text file now deletes it.
- Fixed error when 'Cleanup Text' was run in a folder where some images had missing text pairs.
- Fixed an error when attempting to delete an img-txt pair and no text file was present.
- 'Batch Tag Delete' and 'About' no longer open beside the main window. This prevents the new window from opening off the screen.
- Running 'Prefix' or 'Append' text now creates text files for images that previously didn't have a pair.
- Other changes:
- Basically all text tools were completly redone.
- I've tried to fix as many small bugs and add polish wherever possible. Too many changes to list them all.
Executable Release v1.81
This is released as a portable exe file for those who don't have Python installed
Download the source file if you just want this version of the Python script.
v1.81 changes: a19eed3
- New:
- Added underlining (Alt+Letter) to all menubar commands.
- Fixed:
- Prevent app crash when selecting a folder without any text files.
- Blank text files are no longer created when attempting to save a blank text box.
- This includes when auto-save is enabled and moving between img-txt pairs.
- Right clicking the text box no longer clears the text selection.
- Propperly set menu accelerator flags.
- You can no longer select a directory that doesn't contain images.
- Some menu options are now disabled before loading a directory.
Edit Custom Suggestions
now opens the ".csv" file as a regular text document if no CSV file editor is present.