Added upscale scripts and sample config file for gallery-dl. #62
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.
This may be a little bit messy so feel free to decline.
It's not a proper implementation or anything but it gives users the option to use upscaling during the gallery-dl download process. A better solution would be one where it modifies an existing post but it's not something I currently care to implement.
I did hard-code it to call
waifu2x-ncnn-vulkan
within the script, maybe that could be modified but this is just a way to set it up. It's disabled by default as it's a sample config file along with some additional python scripts for archive extraction and upscaling. Works well alongside #61.While running this on a VM with no GPU, I noticed that JPG conversion is required for PNG files, and I did it in the upscale script because I couldn't be bothered to write a separate script for it because it'd also have to rename the metadata for it and then also handle the same for each file in the archives.