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-
[code]
function cc_mime_types( $mimes ){
$mimes[‘svg’] = ‘image/svg+xml’;
return $mimes;
}
add_filter( ‘upload_mimes’, ‘cc_mime_types’ );[/code]
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.
[code]<img src="thevector.svg" alt="This is a vector graphic">[/code]
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.
1 Comment
Looks like I have a lot to learn. I am finally getting to the point that I can find the time of each page to band energy to put into the site. Am anxious to get my content of each page to reflect my purpose.
Respectfully, Jerry