# Ambience creation without cropping background image?

Can I create an Ambience without having the image it is created from get cropped? I have an image that is 1080x1920 (the resolution of the Sony X) and it gets cropped as the background image when I select to create an Ambience with it. Can I tell Sailfish to use the uncropped image as the background somehow?

edit retag close delete

2

Cropping of ambience to work correctly(?) the image needs to be square, i.e 2048px X 2048px is good.

Ambience was never meant to actually work in landscape mode, but portrait only. Originally, ambience wallpaper dimensions were 540 x 1600px (w X h) and the device had no option for landscape. In fact, landscape is still not officially supported by Sailfish, if you want that, you need to install a rotation patch, but this is no good with wallpapers that are 1920 x 1080, but....you can just about get away with 1024px x 1024px image which falls inside the screen res of SonyX, so try cropping the image squarish with the limited tools in Gallery and then apply as ambience...as already suggested below by darkstarsword.

( 2017-11-15 12:43:18 +0200 )edit
4

Ambience was never meant to actually work in landscape mode

It was for the tablet, and it does work in landscape on the tablet. That's why the image needs to be square.

( 2017-11-15 13:21:11 +0200 )edit
1

yes @ossi1967 you are correct - I forgot about the tablet.

( 2017-11-15 13:44:22 +0200 )edit
2

Making the images square did the trick. I used GIMP on my PC since the editing tools in SFOS currently leave a lot to be desired.

( 2017-11-15 14:51:04 +0200 )edit

Sort by » oldest newest most voted

This isn't a good solution, but you get slightly more control over the crop if you edit the image from the gallery app, select crop and set the aspect ratio to "ambience" then pinch zoom and pan it to get what you want. The problem with this is that aspect ratio is a square (because in theory the image might be displayed landscape sometimes) and doesn't show guidelines for the two orientations the image might appear in, so you can only line up the top and bottom and have to take a stab in the dark at the horizontal position.

Why they couldn't introduce a full screen cropping method to do this (set the zoom and pan in full screen to what you want it to display as), I don't know - the whole Ambience and photo editing features need a lot of work IMO.

more

2

Yep. It's even stranger as I cannot get the ambience background image to show in landscape mode on the phone. (It used to work in previous versions of the OS IIRC.) The tablet still switches from portrait to landscape, but it's odd you shouldn't have a portrait-only background on a portrait-only phone only because somebody else's tablet rotates to landscape mode... :/

( 2017-11-15 09:18:24 +0200 )edit

Had the same problem, so I created a python script which pastes mobile phone wallpapers on a square background so they reveal their whole content as an ambience.

prerequisites: python, python-imaging (both installable with pkgcon as root)

• edit1: new version uploaded which automatically fetches the screen resolution
• edit2: new version uploaded which correctly scales portrait images if they are wider than the screen
• edit3: new version uploaded which correctly scales images with the same proportion as the screen and it can now successfully convert images from a sub-directory
• edit4: new version uploaded which correctly scales all image proportions
more

thanks , I was looking for it for a long time

( 2018-10-28 10:39:26 +0200 )edit

On the Gemini, I now use the following command to get pictures to the right size. It's usable enough for me. It takes an image (should be a landscape one for the Gemini), scales it to 2048 width preserving aspect, and adds a letterbox on top and bottom resulting in a square image. This way the Ambience creator doesn't need to crop it.

Needs imagemagick installed.

convert  -background rgb(0,0,0) -resize 2048x2048 -gravity center -extent 2048x2048 sourcepic.jpg targetpic.jpg


You can play around with the bg colour (rgb(255,0,255) gives magenta f. ex.), and you can increase the extent to 2348x2348 for some variations, depending on the geometry of the source.

After running, go to gallery, select the new image and "create Ambience" as usual. Note that the targetpic needs to be somewhere where Gallery/Tracker can pick it up, I use ~/Pictures/Wallpapers.

more

## Stats

Seen: 1,154 times

Last updated: Jun 29