Comments (5)
Hi @apersky,
SVGs are not supported by WordPress by default, that's the reason why we convert them to a png
. When images are getting optimized using f_auto
and q_auto
, it is usual to get a webp
if you are on Chrome.
The best way to not applied transformations to SVGs would be to not sync them with Cloudinary hence you will need to set your sync process to Manual Sync
and only push to Cloudinary the files you need.
from cloudinary_wordpress.
Hi @Vdeub-cloudinary thanks for the reply.
I am aware that WP does not natively support SVG. But when clients have SVG logos and icons, that's what we need to use. Your plugin converting SVG to PNG is a clear indicator that you are aware that SVGs will end up in the Media Library regardless of if WordPress has native support or not.
However, it is still not feasible to expect a client (or anybody really) to manually sync all assets except SVGs from the Media Library, especially when Cloudinary is added after the fact. Some of our client sites easily have hundreds and hundreds of assets. Manual sync is just not realistic here.
So, back to my original question. Am I using this filter incorrectly? I understand why you are converting SVG to PNG, but I also understand that the point of a filter is so that we the developers can alter this behavior, which is what I am trying to do.
Please advise on the proper use of this filter. Thanks!
from cloudinary_wordpress.
Hi @apersky
Loic is out of office currently so I'll chime in here.
Thanks for these updates, I've forwarded your questions directly to the dev team and we will respond to you once they have updates to share with you.
from cloudinary_wordpress.
Thank you. Awaiting your reply. Have a good weekend!
from cloudinary_wordpress.
Closing as 3.0.0
supports now SVG without optimization.
from cloudinary_wordpress.
Related Issues (20)
- Can't add an image from Cloudinary to the Image Block HOT 3
- Local URL for media instead of Cloudinary URL in rest api HOT 18
- PHP 8.1 support HOT 4
- Proper image urls don't come through WPGraphQL HOT 7
- Cloudinary URL no returned for background url in css HOT 1
- Cloudinary URLs for WPGraphQL Yoast SEO Addon HOT 4
- Calling wp_calculate_image_srcset in a multisite environment returns the wrong srcset HOT 5
- Bug Report: Cloudinary Version 3.0.2 - cloudinary.openMediaLibrary is not a function HOT 5
- Cloudinary v3.0.4 incompatible with Elementor plugin when saving Chinese text HOT 2
- PHPCompatibiltyWP missing from PHPCS config file HOT 4
- Getting a crash (HTTP ERROR 500) when trying to edit page with WP Bakery and Cloudinary plugin activated HOT 2
- Using cloudinary_wordpress with polylang plugin causes error in the site Editor HOT 3
- Cloudinary urls replaced everywhere in the admin but not when accessing acf fields directly HOT 2
- Old URL used when uploading media from the WordPress APP via the block editor HOT 3
- This is failing and returning notice error HOT 4
- clean_url method no longer exists in Delivery class HOT 4
- Unable to install plugin - class Cloudinary\Utils does not have a method "install" HOT 4
- Responsive mode breakpoints are not the same for landscape and portrait images HOT 5
- 500 error when saving page HOT 5
- Cloudinary Process killed by long process killer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudinary_wordpress.