How to convert .png image to .xpm? (Solved)
How to convert .png image to .xpm? (Solved)
I'm using the small .xpm USB images in: /usr/local/lib/X11/pixmaps for popup dialog boxes.
But I'd like to use the larger .png USB image (the one on the desktop), but Xdialog will only use .xpm
I tried mtPaint but it won't save pics. in .xpm format, I can edit the USB pic. how I want with mtPaint.
But then I need to convert the images: .png to .xpm
But I'd like to use the larger .png USB image (the one on the desktop), but Xdialog will only use .xpm
I tried mtPaint but it won't save pics. in .xpm format, I can edit the USB pic. how I want with mtPaint.
But then I need to convert the images: .png to .xpm
- darkerror05
- Posts: 276
- Joined: Sat 17 Jun 2006, 22:10
- Location: Rochester NY, USA
i had the exact same problem as you. Here is a link to my solutuion http://www.murga.org/~puppy/viewtopic.p ... hlight=xpm
-darkerror
- darkerror05
- Posts: 276
- Joined: Sat 17 Jun 2006, 22:10
- Location: Rochester NY, USA
File, Save_As, select type XPM. You should have a checkbox next to the File_Format dropdown that is labeled "Set transparency index". This should be checked, and the number next to it should be set to the same value as the color index number you have chosen as your transparency in MTPaint's pallette.
I'm sorry, I know that wasn't entirely clear(you should have seen it before I edited it.) When I say "you have chosen" I mean that you have decided to use that particular color(and know its number in the palette.) There is not any way to tell MTPaint which color should be used as transparent before the save dialog box AFAIK.File, Save_As, select type XPM. You should have a checkbox next to the File_Format dropdown that is labeled "Set transparency index". This should be checked, and the number next to it should be set to the same value as the color index number you have chosen as your transparency in MTPaint's pallette.
After saving the file and reloading it, you should see the transparent colored area in your image represented by a dark/light grey checkerboard pattern.
--Lee
Thanks fluxit; I noticed that when I converted it to indexed, the olive color changed from 255 to 3.
So I set 3 in the Save As dialog box & the pic. background remained checked or transparent.
Now I just have to figure out how to draw a wide red circle on the USB pic. with a diagonal line through it.
You know... just like the no parking signs (if your in America that is).
The plain one shows for USB insert, & the one with the circle & line on it will show on removal.
So I set 3 in the Save As dialog box & the pic. background remained checked or transparent.
Now I just have to figure out how to draw a wide red circle on the USB pic. with a diagonal line through it.
You know... just like the no parking signs (if your in America that is).
The plain one shows for USB insert, & the one with the circle & line on it will show on removal.
This is how I would do it with MTPaint...Now I just have to figure out how to draw a wide red circle on the USB pic. with a diagonal line through it.
You know... just like the no parking signs (if your in America that is).
First zoom in if you haven't already. It makes working with small sized images much more natural I think. 400, 800 or 1200% work well here for icons.
From the toolbar: Choose a brush. It should be something solid. Circular brushes work well. Make sure it isn't too large.
Choose your color.
From the toolbar: Make selection. Drag the selection box around the area where you want your circle to be.
From the toolbar: Ellipse outline.
For the diagonal cross-bar-
From the toolbar: Straight Line. Left-click the beginning point of the line, Left-click the end. Right-click to finish.
The additions will be jagged of course.
Thanks again fluxit; It only took me a little while to figure out how to set the foreground color.
Your instructions were great! I now have a .xpm of the orignal pic. & a .xpm with the NO symbol on it.
I've added them to usb-auto, which is nearing completion.
I now have it making SCSI device nodes for extra USBs, thanks to Jesse.
I'm waiting on rarsa to post back about his USB card reader at the other forum post.
If I get that info then I'll have usb-auto working fully, & I'll post it in Additional Software.
Your instructions were great! I now have a .xpm of the orignal pic. & a .xpm with the NO symbol on it.
I've added them to usb-auto, which is nearing completion.
I now have it making SCSI device nodes for extra USBs, thanks to Jesse.
I'm waiting on rarsa to post back about his USB card reader at the other forum post.
If I get that info then I'll have usb-auto working fully, & I'll post it in Additional Software.
Hi can8v; It's an auto. mounter/unmounter for USB flash pen drives I've been working on.
I'm waiting for a post back to add USB card readers to it, if I can figure out how to do it.
It works well, still under testing, DownLoad it, try it out & let me know how it works for you.
Here's the forum post discussion & download:
http://www.murga.org/~puppy/viewtopic.p ... 1&start=16
I'm waiting for a post back to add USB card readers to it, if I can figure out how to do it.
It works well, still under testing, DownLoad it, try it out & let me know how it works for you.
Here's the forum post discussion & download:
http://www.murga.org/~puppy/viewtopic.p ... 1&start=16