forum

Image Scaler

posted
Total Posts
86
Topic Starter
Roan

Image scaler

So a little while ago a friend of mine came up with the idea to write a program that would automatically create SD images for already existing HD (@2x) skin images.
And now that program is done :D.

The program itself looks like this:


By default it will look for all the files in the input folder that have a name that ends with @2x and scale them down by a factor 2. It'll also remove the @2x part from the file name of the generated SD image.
However I decided to make all the filters and parameters configurable so you could actually also use this program to upscale or downscale a whole folder of images.

Well I hope some of you find this program useful :)
And if you find any bugs or think of nice features feel free to report/request them.

Downloads

(Java 8 required)
Windows executable
Runnable Java Archive

All releases: link
GitHub repository: ImageScaler

Program icon by: my name is hi
my name is hi
:roll: Thank you for this! It's the first one I find that actually works for me lol
(Although, for some reason it froze at 225 :/)


EDIT: could it have something to do with the fact that I have a psd file in it named *@2x?
EDIT EDIT: Alright so, I think I found the reason, I think the ImageScaler includes the sound files (mp3s and wavs) in the file count when resizing so it actually completes but still says it's in progress as it's trying to convert the sound files. Same for PSDs and other such files.
Try making it so it can only recognize PNGs and JPGs!

Also, for some reason, the converter inverted the JPG's colors (the jpg I use for the menu background)
AGRX
nice! ;)
Topic Starter
Roan

my name is hi wrote:

:roll: Thank you for this! It's the first one I find that actually works for me lol
(Although, for some reason it froze at 225 :/)


EDIT: could it have something to do with the fact that I have a psd file in it named *@2x?
EDIT EDIT: Alright so, I think I found the reason, I think the ImageScaler includes the sound files (mp3s and wavs) in the file count when resizing so it actually completes but still says it's in progress as it's trying to convert the sound files. Same for PSDs and other such files.
Try making it so it can only recognize PNGs and JPGs!

Also, for some reason, the converter inverted the JPG's colors (the jpg I use for the menu background)
Thanks for the bug reports :) , I was already working on fixing some of them. I'll hopefully have a fix for the color inversion issues later today and I'll limit the default filter to jpg and png only. Also thanks for finding the cause of it stopping at some random point, I hadn't figured that one out yet ;)

Agrrox wrote:

nice! ;)
Thanks ^^

Version 1.1

Some important bug fixes for things I missed.

- Separate the normal options from the advanced options in the GUI.
- Report all errors and not just IO errors.
- Make it so by default only png and jpg images are converted.
- Actually make it so the overwrite option is implemented (overwrite was on by default).

I'm also working on a way to solve the color inversion issue for some jpgs.

Version 2.0

- Fix some jpeg images getting their colours inverted
- Add more scaling algorithms
Kurogu
Useful program!
Topic Starter
Roan

Kurogu wrote:

Useful program!
Thanks :)
xAethereal
still cant believe this actually work...and then i just give it a try...and its work....thanks man...you are the best
Topic Starter
Roan

xArief wrote:

still cant believe this actually work...and then i just give it a try...and its work....thanks man...you are the best
Thank you very much :)
bloodymascarade
Holy shit this a godsend.
Topic Starter
Roan

bloodymascarade wrote:

Holy shit this a godsend.

Glad you like it :)
KuroiOkami1
SmartScreen came up with a message that says the application is dangerous :/
Topic Starter
Roan

ZNeoG wrote:

SmartScreen came up with a message that says the application is dangerous :/

That is unfortunately possible yeah. SmartScreen checks programs for things like few downloads, author reputation and if the software is signed. The download count is probably still considered low and I haven't spent a lot of money on expensive signing certificates (hence it'll say Unknown Author when you want to run it).

I should probably really look into at least basic signing of the program so SmartScreen has more information to use. But for now this is the main reason I placed all the source code on GitHub. That way you can always ask someone you trust with programming experience to check the code and/or compile the program.
Mozzarella
Ty so much c:
Topic Starter
Roan

Shemkhh wrote:

Ty so much c:

You're welcome ^^
Founntain
Hot hot hot, thats pretty hot. Damn finally a nice programm that does this tidious work for me.
Thank you!
Topic Starter
Roan

- Founntain - wrote:

Hot hot hot, thats pretty hot. Damn finally a nice programm that does this tidious work for me.
Thank you!

Glad it is useful to you :D
Mazli
It isn't working for me.It stops right before finishing. What do i do?
Topic Starter
Roan

csabi215 wrote:

It isn't working for me.It stops right before finishing. What do i do?

Do you have any more specific problem information? If the program ran into some internal error I think that in all cases an error dialog is displayed with some more information. If that isn't the case could you try running the program from the command line (cmd/powershell -> shift+right clicking in the folder with the program should show the option in the list and then the command is simply the name of the exe which you should be able to tab autocomplete). It might be that more error information is logged to the console.

Currently I have no idea what the cause might be though. Does it only happen for a certain folder or does for example a folder with just a single image in it also have an issue.

Once I have some idea of what might be the cause of your issue I'll try to fix it >_>
my name is hi
Very nice build! I'm looking forward to the next versions!
CM Legacy
problems, exist a minimal storage of elements for convert?
Topic Starter
Roan

ChronosRark1st wrote:

problems, exist a minimal storage of elements for convert?

I'm sorry, I'm not quite sure if I get what you mean.

The number of images to convert does not matter it can be 0 or more.
It should also be possible to convert images of any size though if your images are huge then you might have to allocate more RAM, but I doubt that is the case.
Note though that the default filter only accepts files of type .png .jpg .jpeg .PNG .JPEG .JPG.
Also note that the name of the file to convert has to end in @2x.
Besides that enough disk space has to be free to be able to write the rescaled file, but I'm fairly sure it'll give you a notification if this is not the case.

If none of this answers you question then I'm afraid I did not understand the question ;-;
-Activision
Alright, a simple question here. Will this work with animated skin elements?
Topic Starter
Roan

ashiapnojutsu wrote:

Alright, a simple question here. Will this work with animated skin elements?
Oof, sorry for the late reply, if you're talking about a regular osu! skin animation where each frame is simply a separate png file then yes it should. It'll simply downscale each individual image.
Flavoreddit
THANK YOU SO MUCHHHHHHHHH THE SKIN FINALLY WORKED
Arcss
Working Fine for now, nice!
Thanks!
Topic Starter
Roan

Flavoreddit wrote:

THANK YOU SO MUCHHHHHHHHH THE SKIN FINALLY WORKED
Nice :D


Arcss wrote:

Working Fine for now, nice!
Thanks!
Your welcome :D
Ayacrin
can someone tell how to use it
Corne2Plum3

MattTheMysthYt wrote:

can someone tell how to use it
This is especially for guys who create skins. Normally, the skinner created some HD elements (@2x files) and this program create normal files with the standard resolution (without @2x).

If you use this to do the thing I talked about in the previous paragraph, you need just in 'Input Folder' put you skin folder and press Start, the program is already configured to do that
Topic Starter
Roan

MattTheMysthYt wrote:

can someone tell how to use it
I hope that Corne2Plum3's explanation answered your question. If you have any more specific questions feel free to ask them.
ich1g0
thank you very much for this. :)
Topic Starter
Roan

ich1g0 wrote:

thank you very much for this. :)
You're welcome :)
IncrediMan
I am currently re-working on my skin and I didn't done the SD images, thanks a lot! 😄
Topic Starter
Roan

IncrediMan wrote:

I am currently re-working on my skin and I didn't done the SD images, thanks a lot! 😄
Glad I was able to help out :D
habibiyaudah
Thanks dude!! You're my hero xD
Topic Starter
Roan

habibiyaudah wrote:

Thanks dude!! You're my hero xD
Happy to hear that :)
Kuzuga
how can i upscale an image?
Topic Starter
Roan

Kuzuga wrote:

how can i upscale an image?
You should be able to just enter a value for the scaling factor that is greater than 1.0. If that doesn't work for some reason, please let me know.

That being said, usually upscaling an image doesn't really get you more quality or anything just more pixels. If you want to upscale an image and get a good result you're better off using something that tries to guess what a larger version of the image would've looked like such as https://github.com/nagadomi/waifu2x
AiKRONiCA
It finally works!

Thank you!
Topic Starter
Roan

Xenos_2064 wrote:

It finally works!

Thank you!
Nice!

I wasn't aware that something was previously broken though :oops:
Ayacrin

Corne2Plum3 wrote:

MattTheMysthYt wrote:

can someone tell how to use it
This is especially for guys who create skins. Normally, the skinner created some HD elements (@2x files) and this program create normal files with the standard resolution (without @2x).

If you use this to do the thing I talked about in the previous paragraph, you need just in 'Input Folder' put you skin folder and press Start, the program is already configured to do that
ty so much and sorry late respond
LameO3000
Hey there, ur program sounds cool, will this help out like lag caused by the skins? and also how do I use it?
kaedori

LameO3000 wrote:

Hey there, ur program sounds cool, will this help out like lag caused by the skins? and also how do I use it?
Look up.

Corne2Plum3 wrote:

MattTheMysthYt wrote:

can someone tell how to use it
This is especially for guys who create skins. Normally, the skinner created some HD elements (@2x files) and this program create normal files with the standard resolution (without @2x).

If you use this to do the thing I talked about in the previous paragraph, you need just in 'Input Folder' put you skin folder and press Start, the program is already configured to do that
Topic Starter
Roan

LameO3000 wrote:

Hey there, ur program sounds cool, will this help out like lag caused by the skins? and also how do I use it?
I hope that TTChaos' answer addressed the usage part of your question. As for whether it will help out with lag caused by skins. I would assume that it does not, this program is a tool for skinners to use when making a skin to make it easier to make SD elements, if you already have a completed skin there's not really a need to run this program. And there's not really a significant different performance wise when it comes to images created manually and images generated by this program.
dawwideq
@ 2x has been added to all file names. Can this option be turned off? Do you have to delete all yourself (^ ~ ^;) ゞ
EDIT: One of the files has been changed by the program from .png to .psd.
Some files are double - one with @ 2x and the other not, as I am supposed to understand the ones without are the unscaled ones
YesRythm
does it work on standard to @2x
Tanariki-P
wow it's working thankyou dude
Topic Starter
Roan

dawwideq wrote:

@ 2x has been added to all file names. Can this option be turned off? Do you have to delete all yourself (^ ~ ^;) ゞ
EDIT: One of the files has been changed by the program from .png to .psd.
Some files are double - one with @ 2x and the other not, as I am supposed to understand the ones without are the unscaled ones
If you are running with default settings then no names will get @2x added to them and no extensions will be changed either. The idea is that you run this on a skin with HD elements (@2x files) and then SD elements will be generated automatically (files without @2x) and that's what the default settings are configured to do. I'm not quite sure how you got some of the results you're describing, so if you have detailed steps to reproduce them I'd be interested.

YesRythm wrote:

does it work on standard to @2x
Technically yes, but note that upscaling an image only gets you more resolution not quality. If you want to upscale an image and increase its quality you may want to take a look at waifu2x.

pithau wrote:

wow it's working thankyou dude
You're welcome :)
Clux
ooo
JakeBlade2017
Hey, i have a question abut this program

¿How i can Downscale images with this progam?
Topic Starter
Roan

JakeBlade2017 wrote:

Hey, i have a question abut this program

¿How i can Downscale images with this progam?
You can set the scaling factor in the GUI, this is the number that the dimensions of the input images will be multiplied with to create the output image. So a number below 1 means images get downscaled, a number equal to 1 means the output becomes the same as the input and a number greater than 1 mean the images get upscaled.
show more
Please sign in to reply.

New reply