Coder Social home page Coder Social logo

Comments (5)

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

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.

 avatar commented on August 16, 2024

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.

victorli-cloudinary avatar victorli-cloudinary commented on August 16, 2024

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.

 avatar commented on August 16, 2024

Hi @victorli-cloudinary,

Thank you. Awaiting your reply. Have a good weekend!

from cloudinary_wordpress.

Vdeub-cloudinary avatar Vdeub-cloudinary commented on August 16, 2024

Closing as 3.0.0 supports now SVG without optimization.

from cloudinary_wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.