dimanche 23 août 2015

[TOOL][UNIX]Bootanimation Resizer



Hi,

recently I have worked on resizing the Android Marshmallow bootanimation for multiple screen resolutions. To make it easier for me, I created a shell script which enables me to easily resize the bootanimation files and pack them in a flashable zip. I thought it could be useful for other users here on XDA, so I'm sharing it with you here. You can find the tool in the Downloads section of this project.

Requirements:
  • Linux / OS X / other UNIX operating system

  • imagemagick

  • (Very) basic shell knowledge


Preparation:
  1. Download the bootanimation-resizer.zip from the Downloads section of this project

  2. Extract the tool to a folder of your choosing

  3. Copy the original bootanimation.zip to this folder (the actual bootanimation, not the flashable zip)

  4. OPTIONAL: Edit the updater script in recovery-zip/META-INF/com/google/android/updater-script


Usage:
  1. Run resize.sh with the right parameters

  2. The new bootanimation flashable zip will be saved in the folder where you extracted the tool


resize.sh parameters:
The resize.sh script is used like this:

Code:


./resize.sh WIDTH HEIGHT [ROTATION]

The parameters being:
  • WIDTH: the new width of the images

  • HEIGHT: the new height of the bootanimation images

  • ROTATION (optional): by how many degrees to rotate the animation (clockwise). The supported values are 0, 90, 180 and 270.

The rotation is applied after the resizing, so the WIDTH and HEIGHT parameters specify the new dimensions of the images before the rotation.

Example usage:

Code:


./resize.sh 800 600 90

This will resize the original images to 800x600 px and then rotate them 90 degrees.
The resulting bootanimation will be saved to bootanimation-flashable-800x600-90deg.zip.

XDA:DevDB Information
Bootanimation Resizer, Tool/Utility for all devices (see above for details)

Contributors
frantisek.nesveda

Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2015-08-23

Created 2015-08-23
Last Updated 2015-08-23



Aucun commentaire:

Enregistrer un commentaire