Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Convert .jpg to .xpm (need program)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Wed Jul 12, 2006 9:09 am    Post subject: Convert .jpg to .xpm (need program) Reply with quote

I'm running IceWM atm as my main desktop, and liking it so far (some things load slow for the moment, but its slower under fluxbox), but IceWM only uses .xpm files. Well, I need a converter or a way to change them over. Anyone got any suggestions?
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
chrbecke
Guru
Guru


Joined: 12 Jul 2004
Posts: 598
Location: Berlin - Germany

PostPosted: Wed Jul 12, 2006 9:33 am    Post subject: Reply with quote

You need jpegtopnm and ppmtoxpm (both from media-libs/netpbm):
Code:
jpegtopnm < img.jpg > img.pnm
ppmtoxpm < img.pnm > img.xpm


HTH
Back to top
View user's profile Send private message
erikm
l33t
l33t


Joined: 08 Feb 2005
Posts: 634

PostPosted: Wed Jul 12, 2006 9:38 am    Post subject: Reply with quote

chrbecke wrote:
You need jpegtopnm and ppmtoxpm (both from media-libs/netpbm):
Code:
jpegtopnm < img.jpg > img.pnm
ppmtoxpm < img.pnm > img.xpm


HTH

Unnecessarily complicated.
Code:
~# emerge imagemagick && convert image.jpg image.xpm

...or practically any other format you can think of.
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Wed Jul 12, 2006 10:05 am    Post subject: Reply with quote

erikm wrote:
chrbecke wrote:
You need jpegtopnm and ppmtoxpm (both from media-libs/netpbm):
Code:
jpegtopnm < img.jpg > img.pnm
ppmtoxpm < img.pnm > img.xpm


HTH

Unnecessarily complicated.
Code:
~# emerge imagemagick && convert image.jpg image.xpm

...or practically any other format you can think of.


Thanks. That helped a ton.
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
javeree_work
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2005
Posts: 84

PostPosted: Wed Jul 12, 2006 10:51 am    Post subject: Reply with quote

Maybe you don't even need that. IceWm has support for jpg if you compile it with the imlib USE flag

best wishes
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Wed Jul 12, 2006 12:28 pm    Post subject: Reply with quote

I've got imlib in my use flags. I think its hard-coded into it, but its only a minor problem that was easily solved :)
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum