mafaca / UtinyRipper

GUI and API library to work with Engine assets, serialized and bundle files
MIT License
2.79k stars 429 forks source link

Images from MTGA exporting at a square resolution instead of proper rectangular resolution #327

Closed daftinquisitor closed 5 years ago

daftinquisitor commented 5 years ago

I'm not sure if this is just an issue with Magic The Gathering Arena, but whenever I attempt to export images from the game, it exports them as perfectly square images every single time, despite the fact that most of the images are meant to be in a rectangular format. Is there anything that can be done or looked into?

I can provide instances of the original data files, as well as the exported images, if needed.

mafaca commented 5 years ago

Yes, upload original data files and tell which images should not be squared

daftinquisitor commented 5 years ago

There are five images in this file when exported, 406403_AIF.png through 406407_AIF.png, and each one of them comes out with a resolution of 512x512. The images should be closer to 718x512 (though I don't know the exact resolution). This same process happens with every image I try to export from the game files, even if the base resolution is different -- e.x., some files get put out at 1024x1024 instead, but they're still square instead of rectangular. g18_cardart_17a1b2beba397648819aa2b533bcf32e.zip

mafaca commented 5 years ago

I think developers stretch those images at runtime. Some compressions supports only square images (eg pvrtc on iOS) so that is the way they save storage and memory

daftinquisitor commented 5 years ago

I wouldn't think this particular developer would be worried about something like that, but I could be wrong. Thanks for at least looking into it.

mafaca commented 5 years ago

If they are going to release it on mobile they have to worry about it.