A note for clients

Please check messages claiming to be from me

Someone is using a different email address to impersonate me and contact clients about supposed website updates and payments. Those messages are not from me.

Genuine emails from me only come from hello@derrick.dk. If you receive a request from another address, please do not act on it or make a payment. Contact me directly through this website to check first.

Contact me to verify

Why I use SVG's over PNG's

•4 min read
Derrick KityoWritten by Derrick Kityo

The web's support for SVG graphics has gone a long way. SVG graphics were traditionally raster and saved as JPG, PNG, or GIF files for usage on a website.

Why I use SVG's over PNG's

There are two main image formats you can select when adding graphics to your website: SVG and PNG

A PNG image, often a photograph, is composed of pixels and has a fixed resolution. When scaled up, the quality suffers, and the image becomes pixelated or grainy.

Points, lines, and shapes are used to generate webflow svg images. SVG graphics may be scaled to any size without losing quality. Because webflow svg images may only depict a limited amount of information, they are best suited for components such as typography, logos, icons, or drawings.

‍

The web's support for SVG graphics has gone a long way. SVG graphics were traditionally raster and saved as JPG, PNG, or GIF files for usage on a website.

PNG images are no longer guaranteed to show at a high-quality level for all users now that higher-resolution devices, such as Apple devices with Retina displays, are widespread.

Images in the responsive design must frequently be utilized in various sizes to accommodate different screen sizes. While there are multiple methods for dealing with PNG images, there is an even simpler option for SVG-based graphics: utilize SVG.

SVG is an abbreviation for scalable SVG graphics. It is a file format that allows you to show webflow svg images on your website. This implies that an webflow svg images can be scaled up and down without losing quality, making it an excellent choice for responsive web design .

In this post, we'll look at SVG vs PNG and using SVGs in web development and how they may help your website.

There are two primary ways for incorporating SVGs into your website:

SVG files may be used in the same way as other image files by displaying them on a website using the <img> tag or as a background in CSS.

SVGs are characterized by the code included within the file can be copied and pasted straight onto a page to display the image. This approach gives you greater control over how you manipulate the image.

Want to apply this to your own website or app?

Tell me what you are working on and where it is getting stuck. I will help you turn the useful ideas into shipped work.

Svg vs Png Scalability

One of the most significant advantages of SVG is that they are resolution-independent. This implies that SVGs maintain the same quality regardless of screen resolution or size, unlike file formats like JPG or PNG. As a result, while a PNG image may seem fuzzy on a retina display if it is not large enough, an SVG will still appear high-quality.

Svg vs Png File size

When correctly optimized, SVGs can result in smaller file sizes than other file types. This is useful when dealing with higher resolution screens since SVGs do not need to be generated at bigger sizes to account for the change, as PNG images do. Smaller file sizes mean faster image loading if you use SVG files on your website.

Svg vs Png Editing capabilities

SVG files are distinct in that they may be changed not just in visual editing applications (such as Illustrator or Sketch) like other images but also in a text editor where the markup can be adjusted directly.

Svg vs Png Performance

Inline SVG improves website performance by eliminating an HTTP request to load in an image file. Because no file must be downloaded, website loading times are reduced. This enhances the user experience by making your website look quicker to visitors.

Svg vs Png Style control

Another advantage of utilizing inline SVG is that you may manage the styles within your picture. CSS allows you to modify characteristics such as fill color, stroke color, size, and more. This is particularly helpful for providing hover effects to an image without the requirement for image sprites.

Svg vs Png Advanced options

SVGs are more dynamic than PNG pictures because they can be modified with technologies such as Javascript. SVG animation, for example, is a popular approach for adding interest and interaction to a webpage. For additional innovative ideas, see our page on Animated GIFs and SVGs.

SVG is, as you can see, a valuable tool for presenting images on your website. Derrick Kityo can assist you if you want to upgrade your website but don't know where to begin.

Frequently asked questions

When should I use SVG instead of PNG?

SVG suits vector artwork such as simple icons and logos that should scale cleanly. PNG can suit raster artwork requiring transparency, while modern image formats may be better for photographs. Choose around the actual graphic and delivery requirements.

Are SVG files always smaller than PNG files?

No. A complex vector export can be larger and harder to render than a suitable raster image. Optimise the real files and compare quality, file size and browser behaviour at the intended display size.

How do I make website icons accessible?

Give informative images an appropriate accessible name, and hide purely decorative icons from assistive technology. Ensure a control’s label explains its action without relying on the visual icon alone.

I build websites and apps

I work across product marketing and engineering, turning ideas into useful digital products and improving how they perform after launch.

Webflow developerWebflow LondonWebflow product workshop

On this page

Keep reading