Upload a sharp SVG logo safely
Your logo may look fine on a computer but blurry on a phone.
A designer sends you an SVG version.
Then WordPress says: “Sorry, you are not allowed to upload this file type.”
Plathix lets you upload SVG files through the Media Library and choose who is allowed to do it.
SVG files uploaded through the Media Library are cleaned before WordPress saves them.
Why use SVG for a logo?
A real vector SVG can stay sharp on different screen sizes.
That makes SVG useful for:
- logos;
- icons;
- simple illustrations.
But an .svg file is not always a real vector.
Sometimes a JPG or PNG is simply placed inside an SVG file. In that case, it can still look blurry.
If the SVG looks wrong
An SVG can upload successfully and still look:
- blank;
- too large;
- too small;
- different from the original.
The problem may be in the file itself.
For example, the file may contain a normal image inside the SVG, or it may have incorrect size information.
Choose who can upload SVG
SVG files can contain more than simple graphics, so it is better not to allow everyone to upload them.
Plathix lets you choose which WordPress roles can upload SVG.
By default:
- Administrator — allowed;
- Editor — allowed.
You can also choose to:
- allow SVG;
- block SVG;
- let another plugin handle SVG.
Plathix cleans SVG uploads
SVG files uploaded through the WordPress Media Library are cleaned before they are stored.
Unsafe or unsupported parts can be removed.
Because of this, a complex SVG may look slightly different after upload.
Simple vector logos and icons are the safest use case.
SVG is not always smaller than PNG
SVG can be very small for a simple logo.
But a complex SVG can also be larger than a PNG.
Use SVG because you need a sharp vector image, not because SVG is always faster or smaller.
Built-in size limit
Plathix has a built-in 2 MB limit for SVG files.
There is no normal setting for changing this limit in the WordPress admin.
A developer can change it with a filter.
What we tested
The published SVG tests cover:
Some cases are not yet part of the published live tests:
- SVG with a JPG or PNG inside it;
- some size problems;
- multisite;
- Site Icon cropping;
- what happens after Plathix is disabled.
Free 1.0.0 also does not clean SVG files uploaded through every possible WordPress method. The tested and supported path here is the normal Media Library upload.
SVG controls FAQ
Is SVG support included in Plathix Free?
Will SVG make my logo sharper?
Can I choose who uploads SVG?
Does Plathix clean SVG files?
Can cleaning change the SVG?
Why is my SVG blank?
Is SVG always smaller than PNG?
Will SVG animation always work?
Related
Upload SVG without making it complicated
Use SVG for a sharp logo. Choose who can upload it. Plathix handles the Media Library upload and cleaning.
