hello,
this is how it currently looks like (the battery level on right-top)
regarding the php-script:
- basically its creating an image
- filling it with e.g. a lot of imagettftext
- rotating it
- saving it
- and executing a shell command to convert it
Quote:
$im = ImageCreate (800, 600);
......
$rotate = ImageCreate (600, 800);
$rotate = imagerotate($im, 90 ,0);
imagepng($rotate, "kobo.png");
$convert = shell_exec("sh ./kobo.sh");
|
the shell script (on QNAP) is:
Quote:
/mnt/ext/opt/medialibrary/bin/ffmpeg -i kobo.png -vf transpose=2 -f rawvideo -pix_fmt rgb565 -s 800x600 -y kobo.raw < /dev/null
gzip -c kobo.raw > kobo.raw.gz
|