Ask / Submit

Sailfish 2.0 phone ambiance size [answered]

asked 2015-10-09 22:14:41 +0200

Usegui gravatar image

updated 2015-11-16 19:02:23 +0200

Eische gravatar image

Since the update and the new version of sailfish, when you want to cut a picture to fit the ambiance size the size of the selection is different. At the beginning I didn't understand why, but it is link with the Jolla tablet. So now it is never fit the the phone screen. Did I miss a parameter to fix this? Can we consider this as a bug (design for the tablet not for the phone) that will be solved with one of the next update? Thanks!

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by molan
close date 2017-11-21 20:45:29.205372



I've also been trying to figure out what size the wallpaper should be for the new ambiances... Doesn't seem to be documented anywhere?

Feffe ( 2015-10-09 22:31:52 +0200 )edit

3 Answers

Sort by » oldest newest most voted

answered 2015-10-09 23:05:35 +0200

eson gravatar image

SFOS 2 has wallpaper sized 2048x2048 px and yes, it's because of the tablet screen resulotion.

edit flag offensive delete publish link more


Sadly knowing the size does not help. It's not documented how the clip area is defined. I tried to find the right extract without success.

inta ( 2015-10-09 23:34:04 +0200 )edit

@inta, what does you mean of "clip area"? The wallpaper is rotating on device rotation. So on the phone (16:9) you'll have 448 px apart from each side; from right and left on portrait and from top and bottom on landscape. On the tablet (4:3) you will lose 256 px from each side. So what you will see on the device is two concentric portrait and landscape rectangles fit within the square which will leave 4 small squares at the corners that you will never see on the device screen.

AliN ( 2015-10-10 02:10:55 +0200 )edit

This is what I made for the phone to check how an image will be displayed in both portrait and landscape.

AliN ( 2015-10-10 02:18:51 +0200 )edit

Why 448px? 2048 - 448 * 2 = 1152 the phone has 540px so the image is scaled down to fit the larger side? That would match the 448px. I think I have to check that again. I tried to convert some old wallpapers but they are much to small to place them on a 2048er canvas.

inta ( 2015-10-10 09:15:08 +0200 )edit

@inta, yes it's scaled down. In fact, for phone a 960 x 960 is enough. But if you're going to make ambiences for everyone to use also on tablet you should use the largest size.

AliN ( 2015-10-10 15:03:32 +0200 )edit

answered 2015-10-18 14:40:21 +0200

Kiri gravatar image

So, i slept well and i write my answer after some test.

I share with you a link because i think it's important for you to understand.

In this, you will find 4 pictures. 2 diffrents size. First size is 540960 and second 20482048. Download the first size and put it in ambience. You will see that image is zoomed like a jolla tablet size. So now, put the second pict ( 2048*2048) and tada...Good to see right ?

Thank to Eson for his information about the sos2.0 bazckground size. What you see on the phone, is in 1152*2048. You can do like that with photoshop. Do not forget to center the image. Now i'll reupload all of my pict like that. :) Enjoy

edit flag offensive delete publish link more


@Kiri - I would like to try some of your ambience pics and see the effect, they look really good. But I really don't want to sign up with Yahoo. Could you not just choose one of your favourites and post them directly to this current answer/page?, that way other users who may not have Yahoo accounts/don't want Yahoo accounts, can simply 'save as' from their browser and try?, just a thought :)

Edz ( 2015-10-18 23:28:54 +0200 )edit

Sure, i'll do it. I really did not know, that you need to create an yahoo account to see this. I will found another plateform to share my picts. And i will put and image in this post too.

Kiri ( 2015-10-19 00:23:07 +0200 )edit

image description

At the moment, it's my fav :) @Markkyboy

Kiri ( 2015-10-19 00:25:35 +0200 )edit

Thanks very much for that. I couldnt figure out why my 540x960 pics were not fitting properly.

human19 ( 2015-10-31 03:29:50 +0200 )edit

answered 2015-11-16 17:58:06 +0200

Eische gravatar image

updated 2015-11-16 18:10:29 +0200

I recently started packaging ambiences into RPMs to be able to choose them in Situations app. While doing that I also had problems with the ambience picture size. The way SailFishOS is treating the picture is defined by the ambience file and (in some mysterious way) also by the size of your picture.

The new SailFishOS 2.0 ambiences have a version line added to the ambience file and it is set to 2 (look to /usr/share/ambience for all pre-installed ambiences). Therefore the 2048x2048px picture is cropped like Kiri described above. Great explanation by the way and very nice backgrounds in your album Kiri!

I found out, that you can re-use your old 540x1600px backgrounds...with just a little optimization:

  1. make sure your ambience file contains a version line and it is set to 1:
"translationCatalog"        : "silentambience",
"displayName"               : "Silence",
"ringerToneFile"            : { "enabled": 1 },
"messageToneFile"           : { "enabled": 1 },
"mailToneFile"              : { "enabled": 1 },
"internetCallToneFile"      : { "enabled": 1 },
"chatToneFile"              : { "enabled": 1 },
"calendarToneFile"          : { "enabled": 1 },
"clockAlarmToneFile"        : { "file": "wakeup.mp3",    "enabled": 1 },
"wallpaper"                 : "silentambience.jpg",
"highlightColor"            : "#80bfff",
"secondaryHighlightColor"   : "#80bfff99",
"primaryColor"              : "#FFFFFFFF",
"secondaryColor"            : "#FFFFFF99",
"ringerVolume"              : 0,
"version"                   : 1,
"favorite"                  : true

2. You need to modify your 540x1600px picture, because SFOS is cropping it. From top to bottom the first 58px are cropped. The next 960px are kept and actually visible on the screen. The rest is also cropped. But you need to keep the 540x1600px size to make it work! So if you have important stuff in the first 58px you don't want to miss, simply add 58px (color does not matter as it will not be visible) to the top of the picture and cut 58px at the bottom.

But this only works, if you create a RPM for your ambience. Using an 540x1600px picture to create an ambience directly on the phone (gallery app) will give different result.

edit flag offensive delete publish link more


You don't really have to create RPM's, I would say many Jolla users don't know how to do that. It's perfectly doable to just put the files (image, ambience file and audio files if desired) in a ambience folder and copy the folder to /usr/share/ambience/.

eson ( 2015-11-17 18:11:22 +0200 )edit

Creating ambience RPM is not a big deal. Schturman wrote a very nice guideline for it. You only need root access for installing rpm-build. After that you can simply compile the RPM as normal user (nemo).

But you are right, to just copy the folder is enough to have the ambience available in Situations app.

Eische ( 2015-11-17 19:07:48 +0200 )edit

Question tools



Asked: 2015-10-09 22:14:41 +0200

Seen: 2,514 times

Last updated: Nov 16 '15