maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Themes (https://talk.maemo.org/forumdisplay.php?f=49)
-   -   background strench (https://talk.maemo.org/showthread.php?t=67499)

tpkll2006 2010-12-27 08:27

background strench
 
hi to all
i m facing a problem with my nokia n900
when i set one the ix i clicked as background it does not fit the screen and results in a streched image or zoomed image....
so plz help me solve this problem
thanx

Mentalist Traceur 2010-12-27 08:36

Re: background strench
 
You set an image that is one resolution, to be the background of another-resolution-ed desktop... And this surprises you how? And more importantly, what kind of fix can you possibly conceive of, beyond putting in a different picture?

N900 desktops are 800 by 480 pixels. Either 'stretch' or resize the picture yourself so that it's to your liking, or crop the part you want, so that when it's stretched into the 800 x 480 resolution, it's still the same proportions.

Or, you know, if you can, take/get another picture of the same thing that's 800 x 480 pixels in size, and use that

flipalong 2010-12-27 08:37

Re: background strench
 
the image you set as your background has to be a resolution of 800x480
i think it can be more or less but the ratio has to be the same (16:9)

Mentalist Traceur 2010-12-27 09:11

Re: background strench
 
The ratio is 5:3, not 16:9.

800:480
80:48
40:24
20:12
10:6
5:3

Actually, I believe the stock camera's two settings are 1:1 and 5:3 resolution (too lazy to launch the app and check).

Nyx 2010-12-27 19:21

Re: background strench
 
Why not just input a bigger resolution image? It will automatically fit into your screen.

tpkll2006 2011-01-04 13:30

Re: background strench
 
it does not fit the screen can anyone tell me how to change its proportion or fit the screen.......

gregoranderson 2011-01-04 13:58

Re: background strench
 
Easy enough to do on the N900 itself.

Install ImageMagick (http://maemo.org/packages/view/imagemagick/):

Code:

apt-get install imagemagick
Then resize and crop the image to the desire size:

Code:

convert myfile.jpg -resize 800x480 -gravity center -extent 800x480 background.png
This creates a resized and cropped (from the centre of the image) copy of myfile.jpg to background.png.

Unfortunately, this version (6.3.7) does not allow for the ^ option (adaptive resize, introduce in 6.3.8) within resize which will see the width / height being overflow the pixel area. Might be worthwhile seeing if we can get a newer version compiled ...

EDIT

No need to a newer version of imagemagick if you are prepare to cause some grief to the CPU for brief moment. Found the following from http://www.imagemagick.org/Usage/resize/#space_fill

So you would execute something along the lines of:

Code:

convert 20100807_002.jpg -auto-orient -resize 800x -resize 'x800<' -resize x480  -gravity center -extent 800x480 background.png

tpkll2006 2011-01-04 14:11

Re: background strench
 
i was not facing this problem earlier but a few days back i updated my phone and now the pix i click do not fit as background earlier it used to fit perfectly......

gregoranderson 2011-01-04 16:11

Re: background strench
 
1 Attachment(s)
Attached is a quick script to do the hard work for you. Just copy it to /home/user (trim off the .txt if you desire), chmod u+x it and run:

Code:

~ $ ./bgconv.sh
Usage: ./bgconv.sh [image-to-convert] [background number]

Example:

Code:

./bgconv.sh /media/mmc1/DCIM/20101231_004.jpg 3
Converts the above photo to an 800x480 png (with oversize to compensate for the 5:3 ratio) and makes this my background image for home screen 3.


All times are GMT. The time now is 19:28.

vBulletin® Version 3.8.8