Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Scalable Vector Graphics (SVG)

Descripción

SVG files are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows you to easily use them on your site.

The main project page is located here: https://sterlinghamilton.com/projects/scalable-vector-graphics/

Warning: Understanding that uploading any file to the system is a potential security risk, it is strongly recommended to only let trusted users to have upload privileges.

Resources for understanding security risks:

  • http://security.stackexchange.com/questions/11384/exploits-or-other-security-risks-with-svg-upload
  • https://www.youtube.com/watch?v=v-a77QdoK2I

Instalación

Manually

  1. Upload scalable-vector-graphics-svg into your plugins directory.
  2. Activa el plugin a través del menú ‘Plugins’ de WordPress
  3. Use SVG files just like you would use a normal image file.

Plugin Manager

  1. Go to your plugin manager, located generally at /wp-admin/plugins.php.
  2. Click «Add New».
  3. Search for «Scalable Vector Graphics SVG».
  4. Click «Install Now».
  5. Click «Activate Plugin».

WP CLI

  1. Be in the root of your WordPress installation.
  2. Run wp plugin install scalable-vector-graphics-svg.
  3. Run wp plugin activate scalable-vector-graphics-svg.

Preguntas frecuentes

Installation Instructions

Manually

  1. Upload scalable-vector-graphics-svg into your plugins directory.
  2. Activa el plugin a través del menú ‘Plugins’ de WordPress
  3. Use SVG files just like you would use a normal image file.

Plugin Manager

  1. Go to your plugin manager, located generally at /wp-admin/plugins.php.
  2. Click «Add New».
  3. Search for «Scalable Vector Graphics SVG».
  4. Click «Install Now».
  5. Click «Activate Plugin».

WP CLI

  1. Be in the root of your WordPress installation.
  2. Run wp plugin install scalable-vector-graphics-svg.
  3. Run wp plugin activate scalable-vector-graphics-svg.

Reseñas

3 de mayo de 2019
I am a graphic designer and blogger, so I am using the .svg images not only as UI elements, but directly inside the posts too. I was disappointed with my previous plugin, because of the conflict. With this plugin, I haven't experienced any problems and want to send warm regards to the developers. Vielen Dank.
18 de diciembre de 2017
Thanks for this plugin! As far as I can tell, it works with WordPress 4.9.1.
13 de octubre de 2017
The plugin did work, you can upload and insert SVG easily. Sadly it made all other media disappear from the insertion library. They are still available on the main "Media Library" but you can not insert them from the "insert media" tab.
12 de abril de 2017
I was manually modifying my function.php files but that was not working quite right. This plugin allowed me to archive the same without much work. My only suggestion will me to improve it to help uploading svgz files.
Leer todas las 22 reseñas

Colaboradores y desarrolladores

«Scalable Vector Graphics (SVG)» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

Traduce «Scalable Vector Graphics (SVG)» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

3.4

  • Resolve fatal errors for people who have the core php libraries for xml uninstalled, or have invalid xml files.

3.3

  • Add a patch for core bug introduced in 4.7.1

3.2

  • Created End User styles to allow for the front of the site to display SVG files properly.

3.1

  • Fix mime-type issues. Changed too much too quickly. BAD DEVELOPER.

3.0

  • Removed the sanitizer. This plugin isn’t about security. It’s about letting you use SVG files easily.
  • Added more styling to improve Media Manager, including adjustments Grid View and Listing View
  • Added additional styling to allow for SVG files to show for Featured Images.
  • Reduced overall code footprint and complexity.
  • Added code documentation.
  • Resolved several serverside issues you may have been encountering having to do with security related stuff.

2.3.1

  • Added inline styling to the administration area so SVG attachments will show up in list/grid views.
  • Props to shield-9 (Daisuke Takahashi) for the code.

2.2.1

  • Added a security library to scan all uploaded SVG files. It has a list of «expected» elements and attributes, if the file contains thing it does not expect, it removes them. This will include things like Javascript.
  • The security cannot be perfect and it is recommended to only provide upload privileges to trusted users.
  • Props to thedwards for bringing this to my attention.

2.0

  • I broke everything. I’m sorry, but it had to be done.
  • Basically how I had approached the problem before was wrong. It is now being done properly using the correct mime/type.
  • Shortcodes are no longer needed, you can now use SVG files as you would any other image.
  • Previews now show up in the media area for SVG files.
  • IMPORTANT: Anyone using the version prior to 2.0 were using shortcodes to display SVG files. You will have to go back and replace those shortcodes with actual image tags. If you’re not familiar with HTML, you can just delete the shortcode out of the page/post and then insert the SVG file as you would any other image.
  • Thanks to the guys over at mozilla.org for kicking me in the butt to actually fix this thing: https://bugzilla.mozilla.org/show_bug.cgi?id=721830

1.2

  • One less required parameter and a graceful fail over to a valid implementation type. Props @Phil

1.1

  • Fixing a typo. This typo caused ONLY SVG files to be allowed to upload via the media uploader.

1.0

  • I N C E P T I O N