wip
This commit is contained in:
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
@@ -14,7 +14,7 @@
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
apt-get update
|
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
|
pip3 install termqt
|
||||||
|
|
||||||
cd /data/openpilot/third_party/libyuv
|
cd /data/openpilot/third_party/libyuv
|
||||||
|
|||||||
16
system/clearpilot/startup_logo/generate_logo.sh
Normal file
16
system/clearpilot/startup_logo/generate_logo.sh
Normal 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
|
||||||
Reference in New Issue
Block a user