Scaling the item-slot-image?

  • #1, z nmvhThursday, 26. May 2022, 08:04 hodinky 2 years ago
    Here's a very concrete question: is there a simple way to adjust the size of the image of an item that appears in the inventory interface? I can't seem to find the setting.

    All my item-images are size 200x200, which, I now realize, is a bit too large.

    Of course I could open all the images in Paint, and save them as 120x120, but I want to know how to do it in Visionaire.

    Thanks in advance!

    Bažant

    38 Posts


  • #2, z afrlmeThursday, 26. May 2022, 11:13 hodinky 2 years ago
    Scaling down in Visionaire because you've made the images too large is counter-productive in regards to making your game as optimized as possible.

    While it's possible to scale images & animations up or down with script in Visionaire, I would instead recommend checking out XnConvert & batch resizing them all down to the intended size - you can even convert them to webp format in the process which should reduce the file size down even further. wink

    Here is the link to the guide I wrote on how to use XnConvert for batch converting images & animation frames into webp format. You will have to lookup a tutorial elsewhere on how to transform the size of the image using the actions tab, but it's easy to figure out by yourself anyway. There's a link to the download page for XnConvert on the tutorial page - don't worry the program is 100% free & it's really good.

    Quick note: you don't have to use lossless export option for webp, feel free to use lossy if you want to even further reduce the file size of images & animation frames - however I can't guarantee the quality will be exactly the same standard as the original png if you use lossy option, but feel free to experiment.

    Imperátor

    7285 Posts

  • #3, z nmvhSaturday, 28. May 2022, 07:27 hodinky 2 years ago
    I will certainly check XnConvert out, thanks for the suggestion!

    Bažant

    38 Posts