News:

Support the VirtueMart project and become a member

Main Menu

How to use svg image format in virtuemart ?

Started by Srinivas G, October 23, 2013, 13:31:18 PM

Previous topic - Next topic

Srinivas G

Hello All,

I am using Joomla 2.5.9 & Virtuemart 2.0.22.

We are using image with .svg extension, but here it is not taking.
How to use svg image format in virtuemart ?

This is the php code for displaying the image
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?php // Product Image
               if ($product->images) {
                  echo JHTML::_ ( 'link', JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id ), $product->images[0]->displayMediaThumb( 'class="featuredProductImage" border="0"',true,'class="modal"' ) );
               }
               ?>
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Please check the screenshot below...

Regards,
Srinivas

[attachment cleanup by admin]

jenkinhill

I don't believe that the GD2 library supports the .svg format - and VM uses GD2 to create thumbs. If you use .svg surely IE8 and lower users would not see the images.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum