Page MenuHomePhabricator

Add support for SVG image size
Closed, ResolvedPublic

Description

While working on T353147, we had to use getimagesize() to get the size of images and this works almost like Less.JS image-size library. The downside to using the PHP getimagesize function is that it doesn’t support SVG images.

To fix this, we are going to implement a helper function to get the size of SVG images like how image-size does it. see https://github.com/image-size/image-size/blob/main/lib/types/svg.ts

Details

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Hokwelum changed the task status from Open to In Progress.May 17 2024, 6:32 AM

Change #1032627 had a related patch set uploaded (by Hokwelum; author: Hokwelum):

[mediawiki/libs/less.php@master] Support include-path inside data-uri

https://gerrit.wikimedia.org/r/1032627

Change #1032627 merged by jenkins-bot:

[mediawiki/libs/less.php@master] Support include path inside `data-uri()`

https://gerrit.wikimedia.org/r/1032627

Krinkle triaged this task as Medium priority.