Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
Will this work with linux or xposed?
sparx said:
Will this work with linux or xposed?
Click to expand...
Click to collapse
Yes. It works with both. I don't even understand how it works with xposed, but it does. Flawlessly.
[emoji23]
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
I don't understand. I tried to open this on my iPhone and nothing happened. Plz halp.
Morningstar said:
Yes. It works with both. I don't even understand how it works with xposed, but it does. Flawlessly.
[emoji23]
Click to expand...
Click to collapse
Ohhh bro! Downloading now!! You rock dude...alliance rules!!!!
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp -o
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
Ooo haha. Thanks for the PM bro.
So it only works on windows...
Is there an ETA for when the update will come for the iPhone bro?
Thanks bro.
Morningstar said:
Hello XDA,
Here's a simple script, brought to you by ALLIANCE and myself, that will allow you to easily convert the .wbp files found in many newer apps to more manageable .png files, either individually, or in batches. For other image formats, such as .pkm and .atc, please see my thread here.
***This script is currently for Windows only.***
The script utilizes a tool called dwebp to handle the decoding. dwebp can be run by itself to convert .wbp files to .png via the command prompt with the following:
Code:
dwebp <inputfile.wbp> -o <outputfile.png>
It has other commands and options, but for our purposes, that's the only one we're interested in. For creating .wbp files from other image formats, you can use its' sister tool, cwebp. For more information or to download the entire WebP package, please visit Google Developers.
On to the script....
SETUP
Download the attached zip file, and extract it to a location of your choice. Inside, you will find four files: dwebp.exe, a copy of these instructions, and two batch files.
Select the two batch files, right-click, and select Create Shortcut.
Next, open the run dialog (Start > Run, or windows key + r), type in "sendto" without the quotes, and press enter.
Either move or copy the two shortcuts that you created into the sendto folder, then close it. Now you're ready to convert....
USAGE
To convert individual .wbp files, simply right-click on one, and select Send To > wbp2png (file). The script will run for a couple of seconds, and once it finishes, you will have a .png in the same folder as your .wbp, and with the same name.
To convert multiple .wbp files at once, select the folder containing them (drawable-xxhdpi, for example), right-click, select Send To > wbp2png (folder), and let it do its' magic. Once it's finished, you will have .png versions of any .wbp files contained in the folder.
During batch conversion, you will likely notice several lines in the cmd output that say BITSTREAM_ERROR. This simply means that it encountered a file that was not a .wbp or .png file (such as .xml files) and is skipping over it. It is perfectly safe, and the error can be ignored.
Originally, I created this script so that it would delete the original .wbp files after it had finished generating the .pngs, but I decided to remove that functionality so that, should something go wrong in the decoding process, the user still has the originals, without having to decompile their apk again. In order to be able to recompile your apk, the .wbp files will have to be removed, once you have the .png equivalents. If anyone would like the script to remove them automatically, let me know and I can tell you how to add that functionality yourself.
Thank you,
~Morningstar
Click to expand...
Click to collapse
False advertising. It are not like simpilish as you said. I want my dorrars back.
sparx said:
Will this work with linux or xposed?
Click to expand...
Click to collapse
You Linux is xposed?
Morningstar said:
Yes. It works with both. I don't even understand how it works with xposed, but it does. Flawlessly.
[emoji23]
Click to expand...
Click to collapse
Truth or another round of bs? You act like this is your world and your rules or something.
RErick said:
I don't understand. I tried to open this on my iPhone and nothing happened. Plz halp.
Click to expand...
Click to collapse
Just double tap home button and change to McDonald's icons. All will be g00d.
sparx said:
Ohhh bro! Downloading now!! You rock dude...alliance rules!!!!
Click to expand...
Click to collapse
Won't boot on Samsung Note 3. Be careful. Ps glad to see you got your Linux tucked back in.
RErick said:
Ooo haha. Thanks for the PM bro.
So it only works on windows...
Is there an ETA for when the update will come for the iPhone bro?
Thanks bro.
Click to expand...
Click to collapse
Dagnammit. He didn't pm me [emoji35]
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
sparx said:
Will this work with linux or xposed?
Click to expand...
Click to collapse
RErick said:
I don't understand. I tried to open this on my iPhone and nothing happened. Plz halp.
Click to expand...
Click to collapse
RErick said:
Ooo haha. Thanks for the PM bro.
So it only works on windows...
Is there an ETA for when the update will come for the iPhone bro?
Thanks bro.
Click to expand...
Click to collapse
Bubbajoe40356 said:
False advertising. It are not like simpilish as you said. I want my dorrars back.
You Linux is xposed?
Truth or another round of bs? You act like this is your world and your rules or something.
Just double tap home button and change to McDonald's icons. All will be g00d.
Won't boot on Samsung Note 3. Be careful. Ps glad to see you got your Linux tucked back in.
Dagnammit. He didn't pm me [emoji35]
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
Click to expand...
Click to collapse
Why are all these morons quoting the op....
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Good work morningstar bro
txr33 said:
Why are all these morons quoting the op....
Good work morningstar bro
Click to expand...
Click to collapse
Pffft
Cowboy from Hell on a twisted trail.
Koffed From my Big Ass Outlaw Phone.
hey @Morningstar...added to my Image Converter. if you don't mind i'll just drop it here too.
now it BATCH resizes xxhdpi and converts .atc and .wbp images to png images
IMAGE RESIZERv2
thank you so much for this incredible tool
hello friends as you can convert jpg to wbp
thanks
Hope this is ok to ask, I am hitting a brick wall..
I'll try and include as much detail as possible, so apologies if it's a bit long.
I am trying to convert apk to gpk - two apps in particular; MX Player and ES File Explorer
I have downloaded a tool with instructions from another forum using google translate from Burmese to English, but it's not perfect and still very hard to understand.
The name of the tool is GPKMaker.
From the instructions, I think I need the APK and the Data file folder from the same device that I am trying to install the gpk on. But I don't know how I would get the latter without installing it first..
I tried to use the MX Player Data folder
- com.mxtech.videoplayer.ad From another device to make the gpk.
I have attached a jpeg of instructions that also came with the tool (In Burmese - I can't translate).
From what I can make out, this is what I am required to have to make it work\install correctly:
(Using MX Player as the example)
FOLDER - MXPlayer with a subfolder and .ini file inside it
MXPlayer
game.ini
And inside the subfolder
MXPlayer.gpk
MXPlayer.png (Logo)
MXPlayer.xml
I have done that, and inside the game.ini file I have this written:
[MXPlayer]
package=com.mxtech.videoplayer.ad
version=1.7.40
Click to expand...
Click to collapse
and inside the XML file I have this written:
<?xml version="1.0" ?>
<Files>
<item type="gpp" path="MXPlayer.apk" offset="0" size="9976082"></item>
</Files>
Click to expand...
Click to collapse
I then place the main MXPlayer folder on the device I want to install it on, it appears and begins to install, but then stops and doesn't seem to go any further.
I'm guessing where I'm making the main mistake is the data folder.
But I can't find how or where I may get the correct folder from, would it have to be the same chipset? Or would the same cpu be sufficient?
I have tried the same steps above with the ES File Explorer and get the exact same results.
Hopefully someone can help me.
After searching extensively, I see GPK are also used for cracked/patching game files. But seems that would require the revers of what I am looking for.
As a result, there seems to be mutiple videos/links/programs for converting gpk to apk.
But no good to me, I want to convert into the file format everyone seems to be trying to get away from (typical)
Is this in the wrong subforum, or is nobody able to help?
I am really trying, but unfortunately getting nowhere.
Any reply may be helpful
[SOLVED] only if that's a real gpk file?
This is an easy fix.
That MXPlayer.gpk, is it a real .GPK file, not an .APK rename to a .gpk?
if it is a real .gpk, then you are not telling the device where the file is?
in your xml file you list MXPlayer.apk, but the file name is MXPlayer.gpk.
do that an you will the that it works.
(NOW) please tell me how did you convert an .APK file to a .GPK file, using that windows GPKMaker program?
please step-by-step.
Thanks.
Tomato_Jam said:
Hope this is ok to ask, I am hitting a brick wall..
I'll try and include as much detail as possible, so apologies if it's a bit long.
I am trying to convert apk to gpk - two apps in particular; MX Player and ES File Explorer
I have downloaded a tool with instructions from another forum using google translate from Burmese to English, but it's not perfect and still very hard to understand.
The name of the tool is GPKMaker.
From the instructions, I think I need the APK and the Data file folder from the same device that I am trying to install the gpk on. But I don't know how I would get the latter without installing it first..
I tried to use the MX Player Data folder
- com.mxtech.videoplayer.ad From another device to make the gpk.
I have attached a jpeg of instructions that also came with the tool (In Burmese - I can't translate).
From what I can make out, this is what I am required to have to make it work\install correctly:
(Using MX Player as the example)
FOLDER - MXPlayer with a subfolder and .ini file inside it
MXPlayer
game.ini
And inside the subfolder
MXPlayer.gpk
MXPlayer.png (Logo)
MXPlayer.xml
I have done that, and inside the game.ini file I have this written:
and inside the XML file I have this written:
I then place the main MXPlayer folder on the device I want to install it on, it appears and begins to install, but then stops and doesn't seem to go any further.
I'm guessing where I'm making the main mistake is the data folder.
But I can't find how or where I may get the correct folder from, would it have to be the same chipset? Or would the same cpu be sufficient?
I have tried the same steps above with the ES File Explorer and get the exact same results.
Hopefully someone can help me.
Click to expand...
Click to collapse