View Single Post
Old 05-02-2013, 12:59 PM   #15
z000ao8q
Connoisseur
z000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toys
 
Posts: 51
Karma: 5942
Join Date: May 2013
Device: kobo mini
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

Last edited by z000ao8q; 05-09-2013 at 06:12 AM.
z000ao8q is offline   Reply With Quote