sodface wrote: > Roland0, thanks again for the feedback, not sure how I missed the > --without-dps, though I'm looking at my text editor where I'd pasted the > output of ./configure --help and I don't see the option in there? I'll > have to look at GM again. If I can get it down to as few dependencies > as you show above then it's worth another look. > This doesn't seem to be GM's configure, maybe it's gmic's ?
> > I like the look of the blurred full screen background with cover art > overlay, however, it looks terrible when the cover image is an odd sized > png with transparency, which seems to be common with the internet radio > stations. I'm thinking about treating pngs differently than jpegs, > maybe something like below?? Still gotta work the song info text out! > It's only been a month... > Here's a simple script including text. Needs 'jq' (https://stedolan.github.io/jq/), curl, imagemagick. Adjust hostname (raspi3-64:9000), player MAC (aa:bb:cc:dd:ee:ff), image size Code: -------------------- #!/bin/bash function get_catt { echo $CURR|jq .$1|sed -e "s#'#ยด#g"|sed -e 's#"\(.*\)"#\1#g' } STATUS=$(curl -s -H "Content-Type: application/json" -X POST -d '{"id":1,"method":"slim.request","params":["aa:bb:cc:dd:ee:ff", ["status",0,999,"tags:acglty"]]}' "http://raspi3-64:9000/jsonrpc.js") CI=$(echo ${STATUS}|jq '.result.playlist_cur_index | tonumber') CURR=$(echo ${STATUS}|jq ".result.playlist_loop[$CI]") CID=$(get_catt id) curl -s -o - "http://raspi3-64:9000/music/current/cover_850x850_o"|convert -resize "x850" -background black -stroke blue -fill white -font DejaVu-Sans -pointsize 48 -gravity SouthEast -extent 1280x1080 -draw "gravity NorthWest text 10,10 '$(get_catt title) ($(get_catt year))' text 10,80 '$(get_catt album)' text 10,150 '$(get_catt artist)'" - /tmp/lmsscreen.jpg -------------------- 26095 +-------------------------------------------------------------------+ |Filename: lss.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=26095| +-------------------------------------------------------------------+ SW: 'Web UI for LMS' (http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta)) | 'Playlist Editor / Generator' (http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor) | 'Music Classification' (http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-)) | 'Similar Music' (http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music) | 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/) HowTos: 'build a self-contained LMS' (http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS) | 'Ogg Opus' (http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files) | 'Bluetooth/ALSA' (http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio)) ------------------------------------------------------------------------ Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808 View this thread: http://forums.slimdevices.com/showthread.php?t=109694
_______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix