Skip to content

Conversation

@gabrielcld2
Copy link
Collaborator

When we pull an SVG from Cloudinary, if SVG support is enabled we should expect it to be disabled as an SVG file.

However, it is currently displaying as a PNG.

Approach

  • If the setting is supported, disable SVG conversion using the cloudinary_convert_media_types filter

QA notes

  • Go to Cloudinary Image Settings page
    • Make sure SVG Support toggle is enabled
  • Create a new post/page
    • Add an image block
      • Import an SVG from Cloudinary (if none are present in your account, import one using Cloudinary DAM)
    • Make sure the SVG is displayed as an SVG on the editor
    • Publish and view the post
      • Check that it displays as an SVG on the frontend too and that it has expected SVG transformations (e.g. f_svg,q_auto/fl_sanitize)
  • Go back to Cloudinary Image Settings page
    • Toggle OFF the SVG Support setting
  • Follow the same previous step to add a new post with an uploaded SVG
    • It should be converted to a PNG

Copy link
Collaborator

@aatanasov-cloudinary aatanasov-cloudinary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabriel-detassigny, looks good!

@aatanasov-cloudinary aatanasov-cloudinary merged commit d1081ca into develop Aug 30, 2025
4 checks passed
@aatanasov-cloudinary aatanasov-cloudinary deleted the fix-svg-pulling branch September 17, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants