-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Pokédex
Portal
Technical Documentation
Pages
Tutorials
Forums
Events
Downloads
Gallery
Blogs
Posts posted by PizzaTimeJoshua
-
-
Whoops, hard coded some sizes for the width and height that apparently change (for reasons unknown) e.g. *UInt32 KPictureProfileCurrentWidth was observed to be either 960 or 1440. Changing the values allows for a higher quality image to be rendered onto the Profile and Icon but also means you need to check/change the values every time you want to inject an image. Did testing on my old save file which had 960 as width but then when I tried it on a newer save file, it has 1440 as a width, which made the image come out incorrectly. I will remedy this issue (or try) as soon as I can.
Damn these inconsistent sizes!
- 1
-
Turns out the image was compressed using DXT1 compression. Injecting images should be great now.
Anyways I saved you all the trouble with image stuff and made a Python script and executable with tutorial on how to inject/extract images.
Here's the link. I worked hard on this so I hope someone finds this useful: https://github.com/PizzaTimeJoshua/SV-Image-Injector
- 1
Scarlet/Violet Trainer picture/icon visualizer
in Saves - Research
Posted
Updated the code to be nicer to look and added the option to change the sizes if you find that they are different from your own save file.