Page 1 of 2
Convershacker
Posted: 25 Oct 2020, 22:43
by Gwe89
Been messing around with a very old source code of CH im not massively clued up with it but been trying to edit the convertimage.cpp to try and make a logo the correct size I need but instead of my image been totally scrambled I can see parts of the image
The full logo picture is one the source code made me and I added the bgr manually made from the latest CH so the very first source code codes the images correctly, other picture on main screen is the image edited to 250x195px with the edited imageconvert.cpp if I use the none edited imageconvertt.cpp the image is totally scrambled
Re: Convershacker
Posted: 01 Nov 2020, 20:22
by Gwe89
Convershacker with image at 400x198px
20201101_194307.jpg
Convershacker with image to 250x195px
20201101_194235.jpg
This is from editing the imageconvert.cpp file in the source code unfortunately I only have old first version source code
Re: Convershacker
Posted: 02 Nov 2020, 11:59
by DGAlexandru
Put the Main FW, Original Flash FW and a Flash FW with the image modified by you.
I'm guessing that you're doing something wrong.
Re: Convershacker
Posted: 15 Nov 2020, 14:47
by Gwe89
I'm trying to edit the size of the image with a modified version of convershacker but I'm starting to think there is more to it to change other images in the firmware
Re: Convershacker
Posted: 15 Nov 2020, 14:49
by Gwe89
DGAlexandru wrote: ↑02 Nov 2020, 11:59
Put the Main FW, Original Flash FW and a Flash FW with the image modified by you.
I'm guessing that you're doing something wrong.
I'm pointing the image to new one by changing the end bytes of the stock logo to make it jump to 30 12 04 00 like can do with standby logo, I think its because the images in main screen need coding differently
Re: Convershacker
Posted: 15 Nov 2020, 16:54
by Gwe89
this is the file it generates with my edited convershacker 250x195px
encoded image.19738.bin
this is the one without it edited the latest convershacker makes this the same so its coding correctly for 400x198px
encoded image.28152.bin
Re: Convershacker
Posted: 18 Nov 2020, 07:31
by Gwe89
Maybe I need to edit something else in convershacker source code
Re: Convershacker
Posted: 30 Dec 2020, 11:12
by DGAlexandru
As I said.. you're doing something wrong
Did you edit by hand the
encoded image.28152.bin file?
Why do you want an image size of 640 x 195 pixels?
The maximum image size you can use in Convers+ is 400 x 198 pixels.
Corrected data.jpg
1. Instead of a width of 640 pixels you made it 6.400 pixels... but the image is only 400 pixels wide.
2. Instead of a height of 198 pixels you made it 195 pixels.. and, again, the image is encoded as having 195 pixels in height.
Once I corrected this information in the BIN file, ConversHacker was able to show correctly the image.
Re: Convershacker
Posted: 30 Dec 2020, 17:11
by Gwe89
DGAlexandru wrote: ↑30 Dec 2020, 11:12
As I said.. you're doing something wrong
Did you edit by hand the
encoded image.28152.bin file?
Why do you want an image size of 640 x 195 pixels?
The maximum image size you can use in Convers+ is 400 x 198 pixels.
Corrected data.jpg
1. Instead of a width of 640 pixels you made it 6.400 pixels... but the image is only 400 pixels wide.
2. Instead of a height of 198 pixels you made it 195 pixels.. and, again, the image is encoded as having 195 pixels in height.
Once I corrected this information in the BIN file, ConversHacker was able to show correctly the image.
I changed the px to 250 not 640
I was basically trying to edit the size of the picture CH makes so can change other images in the firmware
Re: Convershacker
Posted: 30 Dec 2020, 18:35
by DGAlexandru
Well.. FA 00 means 6.400
To change the size of an image you have to encode it in that size; it is not enough to change those bytes.. from the end.