Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 20 Jul 2018, 23:56
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
svg or xpm?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Benctes

Joined: 07 Jun 2018
Posts: 7
Location: 828 Pike Street San Diego, CA 92111

PostPosted: Mon 11 Jun 2018, 06:53    Post subject:  svg or xpm?
Subject description: which is the best to use?
 

what is the lightest and best?
Back to top
View user's profile Send private message Visit poster's website 
souleau


Joined: 23 Oct 2016
Posts: 126

PostPosted: Today, at 08:25    Post subject:  

The short answer is SVG.

SVG (Scalable Vector Graphics) is, as the name implies, a vector oriented graphic format. XPM (X Pixmap), by contrast, is a pixel oriented graphic format.
The difference between these two, is that with a pixel oriented graphic format, each pixel (dot) in your picture needs to be defined by both color value and position. A vector oriented graphic format only stores the coordinates of each node in the picture (start and/or endpoint of a line), the mathematical properties of the lines between them, line thickness and color values for lines and the insides of objects.
This means, provided someone knows what they are doing, that in most cases an SVG is considerably smaller in size, and quicker to load, because your computer is basically a giant calculator, and so it likes things that are defined mathematically.
And therein lies the practical distinction also. A vector oriented graphic format is preferable for pictures which can easily be broken down in mathematically defined figures or components, like icons, for instance, whereas a pixel oriented graphic format is preferable for photographs and pictures of a more chaotic or random nature.

Hope this helps!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6832
Location: Auckland, New Zealand

PostPosted: Today, at 23:16    Post subject:  

Are you sure about all that?
I have a feeling performance is better with xpm. And it is probably still less likely to need special libraries for support.

But I think it would be rare to choose between them based on performance.
SVG allows you to scale an image to large sizes without deterioration. A raster format like xpm gives you crisp pixel optimised icons. Those are good reasons to choose between them.

_________________
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0258s ][ Queries: 11 (0.0041s) ][ GZIP on ]