Post by ma701ss » Tue Aug 01, 2017 5:30 am

Hi,

I've tried uploading an SVG logo file to OpenCart but it says "incorrect file type". Any advice please on how I can replace the website logo with this file?

Thanks

Newbie

Posts

Joined
Tue Jul 25, 2017 3:57 am

Post by IP_CAM » Tue Aug 01, 2017 7:30 am

This info may be of help:
SVG images support - vector, responsive images!
https://www.opencart.com/index.php?rout ... n_id=30688
Ernie

Ernie's OpenCart LIGHT with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.ipc.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by ma701ss » Wed Aug 02, 2017 10:50 pm

Hi, thanks, I've downloaded the extension from the link you gave but don't understand the installation process below. Please could you explain what I need to do, as it doesn't mean anything to me!

Installation:
1) Requiring installed vQmod because vQmod doesn't support installing via composer itself.
2) composer require burdapraha/oc_svg
3) composer require sasedev/composer-plugin-filecopier for files manipulating
4) Add this code to your composer.json project file, extra section:

Code: Select all

    "extra": {
        "filescopier": [
            {
                "source": "vendor/burdapraha/oc_svg/upload",
                "destination": "upload",
                "debug": "true"
            }
        ]
    }  
It will move vQmod xml file to correct folder.

5) optionally you can add row to your .gitignore file with path to svg.xml (example: upload/vqmod/xml/svg.xml)

Newbie

Posts

Joined
Tue Jul 25, 2017 3:57 am

Post by IP_CAM » Fri Aug 04, 2017 11:10 am

Well, you just have to upload the:svg.xml
VqMod File into it's vqmod/xml/... Directory,
that's all, the other files are of no interest to you or me! :D
But if it does not work, then at least, one could find out easy, where
what needs to be added, to make it work in your Version!
Ernie
---
Lines of one of the Files, where some changes are made:

Code: Select all

<file path="admin/controller/common/filemanager.php">
<search position="replace"><![CDATA[jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF]]></search>
<add><![CDATA[jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF,svg,SVG]]></add>
---
VqMod Information:
https://github.com/vqmod/vqmod/wiki
http://forum.opencart.com/viewtopic.php ... 89#p640689
http://forum.opencart.com/viewtopic.php ... 15#p507217

Ernie's OpenCart LIGHT with responsive Bootstrap Themes:
http://www.bigmax.ch - http://www.ipc.li - http://www.openshop.li
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by victorj » Sun Aug 13, 2017 2:40 am

SVG is not a filetype supported by browsers ie not suiteble for displaying on websites.
Just convert your svg file to .jpg ot .png wich is dupported by all browsers.

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Eigen productie en snelle levering.
https://123-deurrubbers.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by ma701ss » Sun Aug 13, 2017 3:33 am

That's not true, who told you that?

Newbie

Posts

Joined
Tue Jul 25, 2017 3:57 am

Post by victorj » Sun Aug 13, 2017 3:44 am

It all depends on what the omage is used.
SVG is a vector based image, perfect if a image needs resizing, it will not lose sharpness.
a logo rarely needs do be resized in a website, so a lossless compressed jpg file will be smaller and loads faster.
if you need svg files upload capability in opencart, just go into admin.
configuration, your shop tab server and add extension svg to upload extensions.
now opencart allows to upload svg files

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com

Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Eigen productie en snelle levering.
https://123-deurrubbers.com


User avatar
Expert Member

Posts

Joined
Sat Jun 25, 2011 4:09 am
Location - Alkmaar Holland

Post by ma701ss » Sun Aug 13, 2017 6:51 am

Hi, I'm able to select the file and upload it but it gives the error "Incorrect file type". I suspect there is an error with the format of the svg file but it opens OK in Internet Explorer. I've attached the code.

Newbie

Posts

Joined
Tue Jul 25, 2017 3:57 am
Who is online

Users browsing this forum: dharam81, gazn0357, lavieverte and 47 guests