2016-11-01, 15:30
Note: sort of cross-post from http://forum.kodi.tv/showthread.php?tid=295417
Does anyone know how to Trim the channel logos within Kodi properly?
I have been using Trim in ImageMagick to get perfectly trimmed logos but I need to do it in Kodi now.
In ImageMagick I use:
"c:\Program Files\ImageMagick-7.0.2-Q8\magick.exe" mogrify -trim +repage -resize 176x45 -path Logos *.png
I have tried Image.getbbox() from script.module.pil to get the bounding box without transparency.
It works with some images but not others.
eg
Image size: (800, 450)
bbox: (0, 0, 800, 450)
This one works fine.
Image size: (800, 450)
bbox: (121, 15, 680, 435)
Does anyone know how to Trim the channel logos within Kodi properly?
I have been using Trim in ImageMagick to get perfectly trimmed logos but I need to do it in Kodi now.
In ImageMagick I use:
"c:\Program Files\ImageMagick-7.0.2-Q8\magick.exe" mogrify -trim +repage -resize 176x45 -path Logos *.png
I have tried Image.getbbox() from script.module.pil to get the bounding box without transparency.
It works with some images but not others.
eg
Image size: (800, 450)
bbox: (0, 0, 800, 450)
This one works fine.
Image size: (800, 450)
bbox: (121, 15, 680, 435)