Ask / Submit
4

Bug (?) in packaging an ambience for Sailfish OS 2.0 [answered]

asked 2015-09-14 21:53:20 +0300

updated 2015-09-15 10:43:05 +0300

I've edited an image to be compatible with Sailfish OS 2.0, so I created a file 2048x2048p.

As a test, I applied it from the Gallery and it looked fine. Then I packaged the image in an ambience and packaged it.

I tested the rpm and the result was kinda weird, as the image was no longer centered on the screen but moved in the bottom right.

Is there any setting in the package I should consider?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by fravaccaro
close date 2015-09-15 15:28:40.360380

Comments

I don't beleive that this is any form of bug. There are no settings to make your image appear as you want (that I can see). The data is buried in the image by way of 'guide-lines' as used in Photoshop.

When I imported the image from the Intense ambience, this was the result;

Notice the blue guidelines?, I did not add these, they appeared as soon as the image was opened!

image description

Now compare the same ambience when activated on the device;

Notice how the guidelines in the first image seem to be roughly situated to where the ambience image is cropped on the device!

image description

I believe this is how Jolla are making the images sit where they require when activated on your device, so the trick appears to be, your image must be saved with the appropriate guidelines. I will have to assume that other image editing programs have the same feature as Photoshop (guidelines).

Regards,

Edz ( 2015-09-15 13:02:55 +0300 )edit

Hmmm, I could also be very wrong. I just made a test package, but the portion of the image I wanted to see, doesn't show on my device - back to the drawing board!!....

Edz ( 2015-09-15 13:44:54 +0300 )edit

Weird, I can not see those guidelines in Gimp (but we'll, it may also be my fault).

I think I'll try to use the image cached from ambience creation from gallery and see if it works.

[EDIT] It doesn't work.

fravaccaro ( 2015-09-15 14:19:06 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2015-09-15 14:46:12 +0300

Andrew den Exter gravatar image

The positioning of an ambience wallpaper is determined by its version, ambiences with a square wallpaper should have a '"version": 2' line in their .ambience file.

edit flag offensive delete publish link more

Comments

I can confirm it works....thank you :)

fravaccaro ( 2015-09-15 15:22:01 +0300 )edit

So how will be the position of an ambience labeled with 'version:2'? Will it be centered?

Alex ( 2015-09-15 15:37:09 +0300 )edit

aha, thank you @Andrew den Exter - I completely ignored that aspect of the .ambience file and used a file from an original ambience; no wonder it didn't work!

Edz ( 2015-09-15 15:52:17 +0300 )edit
1

@Alex as far as I can see yes, at least squared 2048x2048p images look centered.

fravaccaro ( 2015-09-15 17:27:29 +0300 )edit

Question tools

Follow
1 follower

Stats

Asked: 2015-09-14 21:53:20 +0300

Seen: 622 times

Last updated: Sep 15 '15