How to Use SVG Files in Depicter

We see a lot of image files on websites, like JPGs and PNGs. But, there’s another one called SVG. What makes it special is that it’s not made of pixels, it’s made of code. That means you can resize it without it getting blurry. It stays clear no matter how big you make it, which is really handy for web graphics.

What is an SVG File and How to Get One?

Technically, an SVG file is an XML-based vector image format. This means it uses text to describe the image’s shapes, lines, and colors. Because it’s text-based, software can read and manipulate the image. So, for example, you might use an SVG file in a website slider on your website, where you need a logo or icon to stay sharp at any size.

You can get SVG files in a few ways:

Create Your Own: Vector graphics editors like Adobe Illustrator or Inkscape let you design SVGs. You draw shapes, lines, and add colors, and the software saves it as an SVG file.

Download from the Internet: Many websites offer free or paid SVG files. You can find icons, logos, and other graphics. Search for “free SVG icons” or “SVG graphics” to find these resources.

Convert Other Images: Some online tools and software can turn JPGs or PNGs into SVGs. This process isn’t always perfect, especially with detailed photos, but it can work for simple graphics.

Pros and Cons of Using SVG Files on a Website

When you’re crafting beautiful WordPress sliders, or any website graphics for that matter, you’ll want to think about more than just general design. You’ll need to consider the type of image file you’re using. SVGs offer some unique advantages, but they also have potential drawbacks. Here’s a quick look at the pros and cons:

Pros:

  • Scalability: SVGs stay sharp at any size. This helps with logos or icons, which need to look good on different screens.
  • Small File Size: For simple graphics, SVGs are often smaller than other image files. This can make your website load faster.
  • Interactive: Because SVGs use code, you can add animations or interactivity.
  • Search Engine Friendly: Search engines can read the text inside SVG files, which can help with SEO.

Cons:

  • Complexity: For detailed photos, SVGs can get large. A JPG or PNG might be better.
  • Browser Compatibility: Most browsers support SVGs, but older ones might not.
  • Editing: You need vector graphics software to edit SVGs.
  • Performance: Complex SVGs can slow down a website.
  • Security: SVGs use XML code, and they can be vulnerable to security threats if not handled carefully.

How to add custom SVG files in Depicter

WordPress, by default, doesn’t allow you to upload SVG files. This is mainly because SVGs use XML code, and that code can contain malicious scripts. If someone uploaded a harmful SVG, it could create security problems for your site. This is a general safety measure.

However, if you create your own SVGs or get them from a trusted source, you might want to use them on your website. In these cases, you are safe.

If you go to the Shapes and Vectors menu and try to upload an SVG file, you’ll see Depicter shows a message that SVG uploads are disabled.

Enabling SVG Upload in Depicter

Inside its settings panel, you’ll find an option to enable SVG uploads. This lets you use your own or reliable SVGs without the default WordPress restrictions.

Before you do that, if you import a slider template and it has SVGs, Depicter will let you know. Then, it can turn on SVG uploads for you if you want to import everything.

To enable SVG upload, navigate to Depicter’s Setting page and enable the “Allow SVG & JSON Upload” option.

After enabling this option, you can upload the SVG file. 

After selecting the SVG file, you bring it into the Depicter editor

Depicter’s editor lets you customize your SVG shape. You can resize it, change its colors, and use other shape and vector editing features.

And also remember that you can use existing SVG files from the Stock Vector menu.

Don’t forget to save your changes, and you are done.

Conclusion

In short, SVGs offer a useful way to add sharp, scalable graphics to your website, especially within an image slider where consistent clarity across different screen sizes is crucial. While WordPress disables uploads by default for security, Depicter provides a way to safely use your own SVGs or those from trusted sources. You can enable uploads in Depicter’s settings, and the plugin even helps with importing templates that include SVGs. Once uploaded, Depicter’s editor gives you control over customizing your SVG files. Whether you’re creating your own or using stock vectors, SVGs can be a valuable addition to your website’s design, provided you understand their benefits and potential security considerations.

Tags: No tags

Leave Comment