Jump to content


Photo

Problem with jpg and openPLI Images


  • Please log in to reply
4 replies to this topic

#1 lolly

  • Senior Member
  • 60 posts

+4
Neutral

Posted 5 June 2012 - 11:56

Hey guys,

i build a Plugin there get movie Infos on TV Screen.

But i have a trouble with openPLI Images.

The Movie Cover shows only the Area from Top/Left from the Movie jpg....
I have marked the visible Area on openPLI Images in the Attachment.

I this a trouble with the relative coordinates patch?

I dont know?

I use this Code and this code is on original Code Based Images OK and the Moviecovers shows correctly....

def Movieinfos(movlink, cover, title, beschr, imdb, genre):
res = [ (movlink, cover, title, beschr, imdb, genre) ]
vidpic = http://www.movie-infos.net/data/media/' + cover
urllib.urlretrieve(vidpic, "/tmp/%s" %cover)
jpg = "/tmp/%s" %(cover)
res.append(MultiContentEntryText(pos=(0, 0), size=(750, 30), font=2, text=title, flags=RT_HALIGN_CENTER))
res.append(MultiContentEntryText(pos=(130, 25), size=(650, 300), font=0, text=beschr, flags=RT_WRAP))
res.append(MultiContentEntryText(pos=(130, 330), size=(750, 20), font=3, text= 'IMDB Rating: ' + imdb, flags=RT_HALIGN_LEFT))
res.append(MultiContentEntryText(pos=(130, 350), size=(750, 20), font=3, text= 'Genre: ' + genre, flags=RT_HALIGN_LEFT))
if fileExists(jpg):
res.append(MultiContentEntryPixmapAlphaTest(pos=(10, 30), size=(105, 148), png=loadJPG(jpg)))
return res

Attached Files



Re: Problem with jpg and openPLI Images #2 lolly

  • Senior Member
  • 60 posts

+4
Neutral

Posted 5 June 2012 - 12:36

Additional Info:

The images in /tmp have the correct size from 105, 148

Re: Problem with jpg and openPLI Images #3 lolly

  • Senior Member
  • 60 posts

+4
Neutral

Posted 1 July 2012 - 20:03

Here is an example of the jpg effect which I mean on a another Plugin

I do not know why this is so.

on Images without openPLI base:

Geplaatste afbeelding

Images with openPLI base:
Geplaatste afbeelding

Re: Problem with jpg and openPLI Images #4 DonDavici

  • Member
  • 8 posts

+3
Neutral

Posted 9 February 2013 - 10:39

i have the excat same problem.

did you find a solution for this?

greets

Re: Problem with jpg and openPLI Images #5 littlesat

  • PLi® Core member
  • 57,062 posts

+698
Excellent

Posted 9 February 2013 - 12:18

The plugin couldnuse autoscale... Which it most likely doesn't

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users