I’ve decided to do it with imagemagic and a bash script… adding a green mark (mean the show is over and it’s complete in my plex) in the lower right corner of the poster.
So I give my way of doing it just in case someone interested…
First of all make the folders (one “todo” where we store the original covers downloaded from thetvdb and “done” with the output covers with tags): sudo su mkdir /opt/scripts/imagemagic/todo mkdir /opt/scripts/imagemagic/done
Make sure imagemagic is installed: apt-get install imagemagick
Then create the script to tag automatically the picture: nano /opt/scripts/imagemagic/tagimage
copy/paste in the file:
`
#!/bin/bash
cd /opt/scripts/imagemagic/todo
for i in * ;
do
a=echo $i | tr "[:blank:]" "_"
mv “$i” “$a”
done
for pic in *.jpg *.png
do
ww=convert $pic -format "%[fx:.15*w]" info:
composite -gravity southeast ( /opt/scripts/imagemagic/tag.png -resize ${ww} ) $pic /opt/scripts/imagemagic/done/$pic
done
chmod 777 -R /opt/scripts/imagemagic
`
A last command to be able to use the script: chmod +x /opt/scripts/imagemagic/tagimage
Now we need the tag to add to the covers: cd /opt/scripts/imagemagic wget https://openclipart.org/image/2400px/svg_to_png/177571/dwcheckyes.png mv dwcheckyes.png tag.png
It’s all set… put all the covers you want to tag in the “/opt/scripts/imagemagic/todo” folder, once done just run the “tagimage” script (in the “/opt/scripts/imagemagic” folder) and enjoy the result in “/opt/scripts/imagemagic/done”.
Now edit the series and replace the cover
PS: I’vot got a script folder cause I use those kind of things a lot… with cron you can do so many things