biko :
Hi.
My python script for converting ".png" picon (image) to ".tpl" format (web-template) can process "oscam.srvid2" but also "oscam.srvid". Just run the ".py" script without arguments to display the help:
/usr/script/oscam-picons-converter.py
The shell script ".sh" is intended only for execution directly inside OscamWebif. But you don't have to do it that way. Anyway, it is advisable to modify this ".sh" script according to what arguments you need to use for the converter itself (for the ".py" script).
Srvid file generators:
If you want, you can also find ".srvid" or ".srvid2" generators among my scripts. However, they are not reliable. It's basically just a parser of data from websites with databases of satellite transponders (and their channels). However, this is never 100% reliable. So the ".srvid" or ".srvid2" output may not be reliable. Unfortunately. But you can try it if you want :).
Just on a side note... :
Also, there is a known problem with TPL-picons for OscamWebif and that is the fact that with a huge number of channels, some ServiceID (SID) match. But that's a problem if the CAID also sometimes coincide. The result is two exactly identical filenames "IC_xxxx_xxxx.tpl" which unfortunately get overwritten (one over the other... because there can only be one). Unfortunately, the names of the ".tpl" files do not contain the whole or at least the final and important service reference code (such as is used, for example, in userbouquet files). Unfortunately, the names of the ".tpl" files are composed only of the CAID + SID code. And that is a very indirect way of determining the correct icon.