126

Product support

Get help in the plugin support forum.

  • Added on Jan 29, 2026
  • Current version: 1.0.1
  • Platform Compatibility
    v4.x use latest
    v3.x use latest
    v2.x not tested
    v1.x not tested
  • Created by
    Bronze partner

Categories

Extraction SVG dimensions from uploaded file. N database changes and fully Tailor compatible.

OctoberCMS automatically gets dimensions for raster images (JPG, PNG, GIF, WebP). However, SVG images do not store width/height in the database. This plugin provides runtime helpers to extract SVG dimensions directly from the file using

  • width and height attributes from SVG files
  • viewBox when width/height are missing

Installation via Command Line

php artisan plugin:install Depcore.SvgDimensions

The plugin provides a twig helper function to fetch dimensions and returns an array

{% set dims = svg_dimensions(record.icon) %}
{% if dims %}
    {{ dims.width }} × {{ dims.height }}
{% endif %}
1.0.1

First version of Svg Dimensions

Jan 18, 2026