We have moved to a new Sailfish OS Forum. Please start new discussions there.
15

Ambience creation without cropping background image?

asked 2017-11-15 06:10:59 +0300

JeffHoogland gravatar image

updated 2020-02-03 11:21:25 +0300

nephros gravatar 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 flag offensive close delete

Comments

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.

Spam Hunter ( 2017-11-15 12:43:18 +0300 )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.

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

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

Spam Hunter ( 2017-11-15 13:44:22 +0300 )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.

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

3 Answers

Sort by » oldest newest most voted
4

answered 2018-08-20 03:07:25 +0300

stateoftheart gravatar image

updated 2019-03-11 21:27:46 +0300

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)

download: ambiconv.zip


  • 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
edit flag offensive delete publish link more

Comments

thanks , I was looking for it for a long time

p_pahare ( 2018-10-28 10:39:26 +0300 )edit
3

answered 2017-11-15 08:40:59 +0300

DarkStarSword gravatar image

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.

edit flag offensive delete publish link more

Comments

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... :/

ossi1967 ( 2017-11-15 09:18:24 +0300 )edit
1

answered 2019-06-29 14:43:02 +0300

nephros gravatar image

updated 2020-02-03 11:21:01 +0300

On the Gemini (or Xperia 10), 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, long portrait one for the Xperia 10), scales it to 2048 (2520) width (height) preserving aspect, and adds a letterbox around resulting in a square image. This way the Ambience creator doesn't need to crop it.

Needs ImageMagick installed, which can be found on openrepos. Or you can use the same command on some other computer which has it. (Note: Imagemagick has a depencency issue at the moment with SFOS 3.2 and cannot be installed there)

# Gemini resolution
convert  -background rgb(0,0,0) -resize 2048x2048 -gravity center -extent 2048x2048 sourcepic.jpg targetpic.jpg
# Xperia 10 resolution
convert  -background rgb(0,0,0) -resize 2520x2520 -gravity center -extent 2520x2520 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.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
10 followers

Stats

Asked: 2017-11-15 06:10:59 +0300

Seen: 1,755 times

Last updated: Feb 03 '20