VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Srinivas G on October 23, 2013, 13:31:18 PM

Title: How to use svg image format in virtuemart ?
Post by: Srinivas G on October 23, 2013, 13:31:18 PM
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]
Title: Re: How to use svg image format in virtuemart ?
Post by: jenkinhill on October 23, 2013, 20:08:37 PM
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.