Labels as svg
- Nils Reinecke
-
Topic Author
- Offline
- Junior Member
-
Less
More
10 years 5 months ago #49754
by Nils Reinecke
Visit www.buma-sports.com
Labels as svg was created by Nils Reinecke
I uploaded several labels as an svg. it works but eshop is trying to convert it into the right size. Maybe you can build in a little exception. So if somebody uploads an svg eshop takes the original .svg instead of trying to resize it.
original: neu.buma-sports.com/media/com_eshop/labels/vegan.svg
resize: neu.buma-sports.com/media/com_eshop/labels/resized/vegan-45x45.svg
Best regards
Nils
original: neu.buma-sports.com/media/com_eshop/labels/vegan.svg
resize: neu.buma-sports.com/media/com_eshop/labels/resized/vegan-45x45.svg
Best regards
Nils
Visit www.buma-sports.com
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
10 years 5 months ago #49808
by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Labels as svg
Hi Nils,
The label must be resized to feet the product image properly. You can control the label size in the Configuration of EShop, under Image tab.
Hope that this will help.
Sincerely, Giang
The label must be resized to feet the product image properly. You can control the label size in the Configuration of EShop, under Image tab.
Hope that this will help.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
- Nils Reinecke
-
Topic Author
- Offline
- Junior Member
-
10 years 5 months ago #49824
by Nils Reinecke
Visit www.buma-sports.com
Replied by Nils Reinecke on topic Labels as svg
.svg is a vector based data format. You dont have to/you cant resize them. Its just an xml file where the path is described.
This is a heart with an heartbeat in it. Its just 1.7 KB and can be skaled as big as you want to.
http://neu.buma-sports.com/images/icons/heart.svg
You just set the size with css or in the html tag.
Vector based grafics giving us fast sitereloads and the ability to display sharp icons for every solution.
This is a heart with an heartbeat in it. Its just 1.7 KB and can be skaled as big as you want to.
http://neu.buma-sports.com/images/icons/heart.svg
Code:
<path xmlns="http://www.w3.org/2000/svg" style="fill:#39AB47;" d="M32.875,0c-3.0830078,0-5.8964844,1.1914063-8.0703125,3.1542969 C22.6328125,1.1914063,19.8173828,0,16.7353516,0C9.8681641,0,4.2998047,5.8847656,4.2998047,13.144043 c0,2.6826172,0.7646484,5.284668,1.9912109,7.7397461h4.1572266l2.7128906-7.4790039 c0.2207031-0.6083984,0.8017578-1.0097656,1.4541016-0.987793c0.6474609,0.019043,1.2089844,0.4511719,1.3935547,1.0717773 l3.1259766,10.5014648l4.3271484-17.1328125c0.1640625-0.6499023,0.7392578-1.1123047,1.4091797-1.1323242 c0.7089844-0.0327148,1.2724609,0.4072266,1.4746094,1.0458984l4.4765625,14.112793H36.5c0.828125,0,1.5,0.671875,1.5,1.5 s-0.671875,1.5-1.5,1.5h-6.7753906c-0.6533203,0-1.2324219-0.4238281-1.4296875-1.046875l-3.2148438-10.1347656 l-4.3720703,17.1796875c-0.1650391,0.6542969-0.7470703,1.0019531-1.4228516,1.0019531c-0.0107422,0-0.0205078,0-0.03125,0 c-0.6621094,0-1.2480469-0.3027344-1.4375-0.9414063l-3.3857422-11.3056641l-1.5205078,4.2255859 c-0.2148438,0.59375-0.7792969,1.0214844-1.4101563,1.0214844H8.0566406H1.5c-0.828125,0-1.5,0.671875-1.5,1.5s0.671875,1.5,1.5,1.5 h8.8427734c6.046875,7.1474609,14.4619141,11.9951172,14.4619141,11.9951172S45.3115234,27.0839844,45.3115234,13.144043 C45.3115234,5.8847656,39.7431641,0,32.875,0z"/>
You just set the size with css or in the html tag.
Vector based grafics giving us fast sitereloads and the ability to display sharp icons for every solution.
Visit www.buma-sports.com
Please Log in or Create an account to join the conversation.
- Nils Reinecke
-
Topic Author
- Offline
- Junior Member
-
10 years 5 months ago #49826
by Nils Reinecke
Visit www.buma-sports.com
Replied by Nils Reinecke on topic Labels as svg
If i look onto my ftp i see the original file in /media/com_eshop/labels/ but the resized it empty. if i copy my file to the resized folder and giving it the name eshop is expecting it works.
neu.buma-sports.com/biosteel/biosteel-hpsd
neu.buma-sports.com/biosteel/biosteel-hpsd
Visit www.buma-sports.com
Please Log in or Create an account to join the conversation.
- Giang Dinh Truong
-
- Offline
- Administrator
-
10 years 5 months ago #49902
by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Labels as svg
Hello Nils,
To be honest, I am a bit confused about SVG. If you have already resolved the problem by yourself, then that is great.
Sincerely, Giang
To be honest, I am a bit confused about SVG. If you have already resolved the problem by yourself, then that is great.
Sincerely, Giang
Please Log in or Create an account to join the conversation.
Moderators: Giang Dinh Truong
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.