bsef11a055 / mp-onlinevideos2

Automatically exported from code.google.com/p/mp-onlinevideos2
0 stars 1 forks source link

Aspect ratio of videoinfo thumb #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some web pages have stored pictures in different aspect ratio. When displayed 
on web page they have set correct ratio in html code.
Is it possible to add aspect ratio property of image to videoinfo ?

Original issue reported on code.google.com by pablik...@seznam.cz on 6 Jan 2011 at 8:17

GoogleCodeExporter commented 9 years ago
What do you want to achieve with that or what is the problem currently? The 
image control that renders the image in MediaPortal is able to stretch any 
image correct.

Original comment by bborgsd...@gmail.com on 7 Jan 2011 at 10:06

GoogleCodeExporter commented 9 years ago
Hi, thank for a reply.
As far i as know, when creating videoinfo, i can only pass url address to 
property ImageUrl. The only way to change the aspect ratio is change property 
of image control in skin xml of online videos. But result will by wrong ratio 
for other sites.

Example: web page uses pictures from widescreen video dvd format which has 
anamorphic format. To properly show the picture on the web page, parameters 
width and height of the picture in html code set the right aspect ratio. But i 
can't do that, because i can pass only the url of the image. Yes, i could 
temporally download image by myself and set the ImageUrl property to the path 
of the temporally image, but i guess this is little complicated. Much better 
would be to do that directly by onlinevideos plugin when storing thumbnails in 
thumb folder.

Original comment by pablik...@seznam.cz on 7 Jan 2011 at 4:13

GoogleCodeExporter commented 9 years ago
Can you point me to a website that displays images at a specific width and 
height to correct the aspect ratio?

Original comment by bborgsd...@gmail.com on 10 Jan 2011 at 1:42

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,
here is web page  http://dviproduction.cz/info/.
Try this picture http://dviproduction.cz/video/leden/kuzelky.jpg.

I did workaround by downloading image by my plugin, resizing and storing in 
temp folder. Because when passing direct file path to videoinfo , onlinevideos 
does not create thumbnails for that video, so i need keep them somewhere.
My be the better way would by to pass direct Image to videoinfo.

Original comment by pablik...@seznam.cz on 10 Jan 2011 at 3:08

GoogleCodeExporter commented 9 years ago
Can you send me your image resizing code? I can try to integrate it in the 
ImageDownloader.

Original comment by bborgsd...@gmail.com on 11 Jan 2011 at 12:54

GoogleCodeExporter commented 9 years ago

Original comment by bborgsd...@gmail.com on 12 Jan 2011 at 2:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1119.

Original comment by bborgsd...@gmail.com on 12 Jan 2011 at 2:41