Re[2]: stretching wallpaper

theruck (
Mon, 5 Aug 2002 15:12:56 +0200

((o: yes i am skilled with gimp and photoshop and others like this but
i thought there is a selector if the wallpaper is tiled or stretched
or what... in some configuration file of aterstep i am not going to
resize the 100 wallpapers in gimp...

Monday, August 5, 2002, 2:57:54 PM, you wrote:

BMJ> On Mon, Aug 05, 2002 at 12:46:52PM +0200, theruck wrote:
>> Hello as-users,
>>   how can i stretch a wallpaper if it is 1024x768 and my desktop is
>>   1280x1024?

BMJ> Have a look at pnmscale.  First you will need to use one of the pnm
BMJ> utilities (e.g. giftopnm or jpegtopnm) to convert it to PNM (portable
BMJ> anymap) format, then scale it up with pnmscale, and convert it back to
BMJ> the previous format.

BMJ> You will need different scale factors for x and y, so, assuming you
BMJ> are converting jpeg wallpaper, you could string everything together:

BMJ>  jpegtopnm wallpaper.jpg | pnmscale -xscale=1.25 -yscale=1.33333 \
BMJ>   | ppmtojpeg > newwallpaper.jpg

BMJ> "man jpegtopnm" and "man pnmscale" for a whole lot more information.

BMJ> I'm not that familiar with gimp, but you may be able to use it,
BMJ> instead.

>> -- 
>> Best regards,
>>  theruck                

BMJ> Cheers,

Best regards,

The AfterStep Window Manager for X User's Mailing List