Added image format conversion to dataset tool #46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When working with custom image folders (and similarly image folder zips) it can be common to have a lot of images in different formats which don't always seem to cleanly convert over to the ideal format. For example, having some grayscale images and some full-color images, having some images saved with an alpha channel, or having images that were converted using 3rd party tools that use other image formats like cymk. I actually run into this one a few times myself when working with web scrappers.
So I added a utility option to force image folders to be loaded with a specific image format. Hopefully, this helps someone!