Hey everybody I want to let you know that I have undertaken the grueling task of getting the heck away from WordPress. I was so sick of the problems and updates I had to do all the time. I am now using my ezbloo system and I am integrating all my old posts into the new system. It sucks, but in the end, I will save bundles of time. I needed to keep things simple and that is why I created ezbloo. I'll have more on this later for you guys after I am done with the total integration of my old posts here. So if you are looking for a post and need it faster, shoot me an email and I will make it a priority. [email protected]

Scalable Vector Graphics

I was recently asked if you can use Scalable Vector Graphics in WordPress. Scalable Vector Graphics or (SVG) is an XML-based vector image format for two-dimensional graphics that has support for interactivity and animation. The answer is yes you can but you have to insert a code into your functions.php file in order for this to happen. You can go to your dashboard then hit appearance then editor and select the functions.php on the right. You can then insert the code below into your functions file and click save. Next go to media and upload your SVG or Scalable Vector Graphic to your media and you should be good to go.
function cc_mime_types( $mimes ){
 $mimes['svg'] = 'image/svg+xml';
 return $mimes;
}
add_filter( 'upload_mimes', 'cc_mime_types' );

Benefits of using Scalable Vector Graphics

  • Small files compress very well
  • When scaling to a different size you keep the resolution

Use of Scalable Vector Graphics

After creating a Scalable Vector Graphic in a program like Adobe Illustrator you can use an image tag to insert it into your post or webpage.
<img src="thevector.svg" alt="This is a vector graphic">
To get more details on scalable vector graphics please check out Chris Coyers article on SVG You may be able to use scalable vector graphics in slide show plug-ins like "slideshow" or "meteor slides" for WordPress.