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?
show more
Please sign in to reply.

New reply