Skip to content

Commit

Permalink
Replace convert with jhead
Browse files Browse the repository at this point in the history
In some cases, ImageMagick needs more RAM than available on Raspberry Pi Zero.
Thus, image rotation is exchanged with jhead.
Relates to #33
  • Loading branch information
avanc committed May 24, 2021
1 parent a8a0cd8 commit 63b7a68
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions configs/raspberrypi2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ BR2_PACKAGE_GZIP=y
BR2_PACKAGE_JQ=y
BR2_PACKAGE_E2FSPROGS=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_JHEAD=y
BR2_PACKAGE_PHOTOFRAME=y
BR2_PACKAGE_FBSET=y
# BR2_PACKAGE_FBV_GIF is not set
Expand Down
1 change: 1 addition & 0 deletions configs/raspberrypi3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ BR2_PACKAGE_GZIP=y
BR2_PACKAGE_JQ=y
BR2_PACKAGE_E2FSPROGS=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_JHEAD=y
BR2_PACKAGE_PHOTOFRAME=y
BR2_PACKAGE_FBSET=y
# BR2_PACKAGE_FBV_GIF is not set
Expand Down
1 change: 1 addition & 0 deletions configs/raspberrypi4_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ BR2_PACKAGE_GZIP=y
BR2_PACKAGE_JQ=y
BR2_PACKAGE_E2FSPROGS=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_JHEAD=y
BR2_PACKAGE_PHOTOFRAME=y
BR2_PACKAGE_FBSET=y
# BR2_PACKAGE_FBV_GIF is not set
Expand Down
6 changes: 4 additions & 2 deletions configs/raspberrypi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-raspberrypi"
BR2_OPTIMIZE_2=y
BR2_GLOBAL_PATCH_DIR="board/raspberrypi"
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/raspberrypi/tools/archive/5caa7046982f0539cf5380f94da04b31129ed521.tar.gz"
BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH="arm-bcm2708/arm-linux-gnueabihf/bin"
Expand All @@ -20,8 +21,8 @@ BR2_ROOTFS_OVERLAY="board/common/overlay board/raspberrypi/overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/a896a00ebffd0b016627f65ff236b660e66e782b.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="bcm2711"
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/f0eeafb5d9109c2a1d512f045d7326a8a1d33e7e.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2708-rpi-zero-w bcm2708-rpi-b bcm2708-rpi-b-plus bcm2708-rpi-cm"
BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox.config"
Expand All @@ -30,6 +31,7 @@ BR2_PACKAGE_GZIP=y
BR2_PACKAGE_JQ=y
BR2_PACKAGE_E2FSPROGS=y
BR2_PACKAGE_NTFS_3G=y
BR2_PACKAGE_JHEAD=y
BR2_PACKAGE_PHOTOFRAME=y
BR2_PACKAGE_FBSET=y
# BR2_PACKAGE_FBV_GIF is not set
Expand Down
4 changes: 3 additions & 1 deletion package/photoframe/photoframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ function start {
echo $IMAGE

IMAGE2=/tmp/photoframe.image
convert -auto-orient "$IMAGE" "$IMAGE2"
cp $IMAGE $IMAGE2
# convert -auto-orient "$IMAGE" "$IMAGE2"
jhead -autorot $IMAGE2
fbv $PARAMS_FBV "$IMAGE2"
error_display
sleep $SLIDESHOW_DELAY
Expand Down

0 comments on commit 63b7a68

Please sign in to comment.