Hey Zenju was wondering if you have any interest in implementing command line support? To my knowledge, there isn't a Windows program that exists that can apply xBRZ to images through command line. This could beneift at least the Dolphin texture pack community, there are some users manually using your tool to upscale game textures, 100's to even 1000's of images. With command line support I could automate it for them, as I've recieved requests to somehow add xBRZ to my powershell script here: https://forums.dolphin-emu.org/Thread-unofficial-custom-texture-tool-ps-v7-3
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Awesome! Is there somewhere that lists the arguments (like xBRZ strength) and how to specify an output? I tried a few by guessing....
ScalerTest.exe input.png output.png
ScalerTest.exe -xbrz 6x input.png output.png
.. but it just loaded the program with "input.png" in the input file section
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Zenju for the command line support. I have a question. What command do I use to apply xBRZ to a folder and have the output be a different folder?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I don't know if you are still reading these but. I would like to know how to "batch" image processing as well... Like the user above, sadly I have not figured out how. I am terrible at cmd line.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, I tried it, if I just throw that line in the command window it says "%%F" was unexpected. If I run it with the exe, it throws an error that reads "incorrect number of paths specified"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What if I want to do a whole directory tree? Currently, the CMD file just spits out all the images into its own directory. How can I get it to preserve the directory structure of the images and spit everything out into a new directory with the old filenames?
I am trying to use this to make a minecraft resource pack, and the graphics files there are in a non-trivial directory structure.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So, a bit of a tangent, but I get how to apply xBRZ to an entire folder.
Since it's running it through ScalerTest.exe, it should be possible to do the same with the other filters (including option to not use a scaler?)
How would you do this?
for /R . %%F in (*.png) do ScalerTest.exe -4xBRZ "%%F" "%%~nF.png"
It's safe to say that it involves changing the "-4xBRZ"
I couldn't get it to work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Zenju, thanks for the xBRZ filter. How can I apply xBRZ to a folder that is full of pictures? I believe it is called batching.
The ScalerTest tool currently doesn't have command line support.
Hey Zenju was wondering if you have any interest in implementing command line support? To my knowledge, there isn't a Windows program that exists that can apply xBRZ to images through command line. This could beneift at least the Dolphin texture pack community, there are some users manually using your tool to upscale game textures, 100's to even 1000's of images. With command line support I could automate it for them, as I've recieved requests to somehow add xBRZ to my powershell script here: https://forums.dolphin-emu.org/Thread-unofficial-custom-texture-tool-ps-v7-3
Okay, I've added command line support.
Awesome! Is there somewhere that lists the arguments (like xBRZ strength) and how to specify an output? I tried a few by guessing....
ScalerTest.exe input.png output.png
ScalerTest.exe -xbrz 6x input.png output.png
.. but it just loaded the program with "input.png" in the input file section
You could have tried "ScalerTest.exe -h", "ScalerTest.exe /?" or the like :)
Not sure why I didn't think of that. :P Anyway, it works perfect! Many thanks!
Thanks Zenju for the command line support. I have a question. What command do I use to apply xBRZ to a folder and have the output be a different folder?
This can be solved via ordinary batch scripting, look for the "for /r" command
I'm stuck Zenju. So if i have my pictures in this path:
C:\Users\username\Desktop\Gallery 1
And I wanted to apply -4xBRZ to the folder and send the output pictures to:
C:\Users\username\Desktop\Gallery 2
How should it look like with the "for/r" command?
Thanks.
Last edit: Rodger Roe 2016-05-21
Nevermind. I figured it out.
Hello, I don't know if you are still reading these but. I would like to know how to "batch" image processing as well... Like the user above, sadly I have not figured out how. I am terrible at cmd line.
To scale all PNG files in the current directory, put the following inside a CMD file and run it:
Thank you very much!
Well, I tried it, if I just throw that line in the command window it says "%%F" was unexpected. If I run it with the exe, it throws an error that reads "incorrect number of paths specified"
What if I want to do a whole directory tree? Currently, the CMD file just spits out all the images into its own directory. How can I get it to preserve the directory structure of the images and spit everything out into a new directory with the old filenames?
I am trying to use this to make a minecraft resource pack, and the graphics files there are in a non-trivial directory structure.
References:
Works like a charm. I had to remove the @4x from line 12 to preserve the original filename. I now have:
Last edit: oneilmw 2019-11-16
So, a bit of a tangent, but I get how to apply xBRZ to an entire folder.
Since it's running it through ScalerTest.exe, it should be possible to do the same with the other filters (including option to not use a scaler?)
How would you do this?
It's safe to say that it involves changing the "-4xBRZ"
I couldn't get it to work.
If you're executing this directly on the command-line you need to relace
%%Fwith%Fand%%~nFwith%~nF:See the documentation references previously posted – FOR /R:
Parameter Extensions: