xibo python client

Asked by shakti sharma

Hi

i am using xibo python client in my raspberry pi device in portrait mode. i changed splash screen. when i run client than splach screen is not coming in full screen can any body help me how can i make splash screen in full screen in fix ed there 720*1280 image

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Harrington
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

You need to put your new image as splash.png in the resources folder.

Then in the resources folder edit 0.xlf so that it uses a layout of approrpriate size and the region within it similarly edited.

Finally you need to delete 0.xlf and splash.png from your data directory

Revision history for this message
shakti sharma (shaktisharma27789) said :
#2

sry sir i did not get your mean by data directory

Revision history for this message
shakti sharma (shaktisharma27789) said :
#3

and what should i edit in 0.xlf file

Revision history for this message
Best Alex Harrington (alexharrington) said :
#4

You edit the dimensions of the layout and the region. By default the layout
is portrait so you need to reverse width and height. Then do the same for
the region dimensions.

The data directory is the directory you've configured as the local Xibo
library - by default it's called data

Alex

Revision history for this message
shakti sharma (shaktisharma27789) said :
#5

i did following still it is not working

<?xml version="1.0"?>
<layout schemaVersion="1" width="720" height="1280" bgcolor="#000000" background="">
 <region id="splash" width="1280" height="720" top="0" left="0">
  <media id="1" type="image" duration="10" lkid="1" schemaVersion="1">
   <options>
    <uri>splash.jpg</uri>
                <transIn>FadeIn</transIn>
                <transInDuration>2000</transInDuration>
                <transOut>FadeOut</transOut>
                <transOutDuration>2000</transOutDuration>
   </options>
   <raw/>
   <effects>
       <!-- <effect type="spin" speed="-5" /> -->
                <!--<effect type="rotate" angle="-270" animate="1" duration="1000" />-->
                <!-- <effect type="blur" radius="10" /> -->
                <!-- <effect type="shadow" offsetx="5" offsety="5" radius="5" opacity="1" color="FF0000" /> -->
   </effects>
  </media>
        <options>
                <transOut>FadeOut</transOut>
                <transOutDuration>2000</transOutDuration>
        </options>
 </region>
</layout>

Revision history for this message
shakti sharma (shaktisharma27789) said :
#6

Thanks Alex Harrington, that solved my question.

Revision history for this message
Alex Harrington (alexharrington) said :
#7

You didn't swap the width and height for the region too

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#8

So it should be:

<?xml version="1.0"?>
<layout schemaVersion="1" width="720" height="1280" bgcolor="#000000"
background="">
        <region id="splash" width="720" height="1280" top="0" left="0">
                <media id="1" type="image" duration="10" lkid="1"
schemaVersion="1">
                        <options>
                                <uri>splash.jpg</uri>
                <transIn>FadeIn</transIn>
                <transInDuration>2000</transInDuration>
                <transOut>FadeOut</transOut>
                <transOutDuration>2000</transOutDuration>
                        </options>
                        <raw/>
                        <effects>
                            <!-- <effect type="spin" speed="-5" /> -->
                <!--<effect type="rotate" angle="-270" animate="1"
duration="1000" />-->
                <!-- <effect type="blur" radius="10" /> -->
                <!-- <effect type="shadow" offsetx="5" offsety="5"
radius="5" opacity="1" color="FF0000" /> -->
                        </effects>
                </media>
        <options>
                <transOut>FadeOut</transOut>
                <transOutDuration>2000</transOutDuration>
        </options>
        </region>
</layout>