View Single Post
Old 03-04-2022, 02:42 PM   #15
benjaffe
Junior Member
benjaffe doesn't litterbenjaffe doesn't litter
 
Posts: 2
Karma: 102
Join Date: Jan 2022
Device: Kobo Libra H2O
Working on MacOS

I got it working on MacOS with a small tweak. Replace the `while true` line with:

```
while true; do screencapture -x -R0,0,840,632 /tmp/continuous.png && convert /tmp/continuous.png -rotate 270 -colors 255 -depth 8 +profile "*" -strip /tmp/continuous.png && sshpass -p test scp /tmp/continuous.png root@$ip:/tmp ; done
```

This captures a smaller area of the screen so things are bigger on the Kobo (I have a Libra H2O), and uses ImageMagick to rotate the png and compress it for faster transfer. The four numbers are x, y, width, and height.

To install ImageMagick using Brew, run `brew install imagemagick`. If you don't have Brew, follow the instructions on their website to install it.

If you Brew complains about architecture because you're on an Apple Silicon mac, there are a few options. The quick hack is `arch -x86_64 brew install imagemagick` to run it under emulation, but if you use Brew a lot, you may want to search around for whatever the best solution is in the future.
benjaffe is offline   Reply With Quote