This commit is contained in:
Your Name
2024-04-27 16:11:59 -05:00
parent f6521ed78e
commit c1b8d65f3b
3 changed files with 17 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -14,7 +14,7 @@
# fi
apt-get update
apt-get install -y nodejs npm python3-pyqt5 pywayland python3-pyqt5.qtwebengine
apt-get install -y nodejs npm python3-pyqt5 pywayland python3-pyqt5.qtwebengine imagemagick
pip3 install termqt
cd /data/openpilot/third_party/libyuv

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Create a 2160x1080 true color bitmap canvas with black background
convert -size 2160x1080 canvas:black /tmp/black_canvas.png
# Place the image in the center of the canvas, blending the transparent background
composite -gravity center /data/openpilot/selfdrive/clearpilot/theme/clearpilot/images/button_flag.png /tmp/black_canvas.png /tmp/centered_image.png
# Rotate the image clockwise 90 degrees
convert /tmp/centered_image.png -rotate 90 /tmp/rotated_image.png
# Save the image as a JPEG with 95% quality
convert /tmp/rotated_image.png -quality 95 /data/openpilot/system/clearpilot/startup_logo/bg.jpg
# Clean up temporary files
rm /tmp/black_canvas.png /tmp/centered_image.png /tmp/rotated_image.png