Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法上传svg图标到iconfont的project中,提示upload error但是没有任何有效的错误原因 #2206

Closed
cw1997 opened this issue Apr 14, 2022 · 2 comments

Comments

@cw1997
Copy link

cw1997 commented Apr 14, 2022

问题描述

无法上传svg图标到iconfont的project中,提示upload error但是没有任何有效的错误原因

截图

image

重现步骤

  1. 打开:打开【我的项目】
  2. 点击:选择对应项目后点击上传图标按钮
  3. 出现:上传svg图标后提示upload error,上传失败,并且没有提示任何有效的错误原因

期望结果

成功上传svg图标

相关信息(重要)

相关文件(重要)

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="35.734" height="25.53" viewBox="0 0 35.734 25.53">
  <defs>
    <linearGradient id="linear-gradient" x1="-4.333" y1="-23.122" x2="-4.311" y2="-23.154" gradientUnits="objectBoundingBox">
      <stop offset="0" stop-color="#e30c34"/>
      <stop offset="1" stop-color="#b7062c"/>
    </linearGradient>
  </defs>
  <g id="组_12809" data-name="组 12809" transform="translate(-1292.528 -398.958)">
    <path id="Path_4369" data-name="Path 4369" d="M1320.713,404.932a11.9,11.9,0,0,0-22.038,3.885,7.938,7.938,0,0,0,1.8,15.671q.4,0,.8-.041h16.26c.266.021.533.041.8.041a9.922,9.922,0,0,0,2.374-19.555Z" transform="translate(0 0)" fill="url(#linear-gradient)"/>
    <g id="Group_1793" data-name="Group 1793" transform="translate(1304.237 405.168)">
      <path id="Path_4370" data-name="Path 4370" d="M1380.62,442.412l-6.147,3.549v3.548l3.074-1.775v7.143l3.073,1.772h0v-10.69l3.073-1.774Z" transform="translate(-1374.473 -442.412)" fill="#fff"/>
      <path id="Path_4371" data-name="Path 4371" d="M1439.112,469.09v7.122l3.086-1.781v-7.124Z" transform="translate(-1429.875 -463.75)" fill="#fff"/>
    </g>
    <path id="Path_4369-2" data-name="Path 4369" d="M1320.713,404.932a11.9,11.9,0,0,0-22.038,3.885,7.938,7.938,0,0,0,1.8,15.671q.4,0,.8-.041h16.26c.266.021.533.041.8.041a9.922,9.922,0,0,0,2.374-19.555Z" transform="translate(0 0)" fill="#4432f3"/>
    <g id="Group_1793-2" data-name="Group 1793" transform="translate(1304.237 405.168)">
      <path id="Path_4370-2" data-name="Path 4370" d="M1380.62,442.412l-6.147,3.549v3.548l3.074-1.775v7.143l3.073,1.772h0v-10.69l3.073-1.774Z" transform="translate(-1374.473 -442.412)" fill="#fff"/>
      <path id="Path_4371-2" data-name="Path 4371" d="M1439.112,469.09v7.122l3.086-1.781v-7.124Z" transform="translate(-1429.875 -463.75)" fill="#fff"/>
    </g>
  </g>
</svg>

平台/浏览器版本(重要)

  • 操作系统及版本:
    Windows 10 21H1
  • 浏览器名称及版本:
    Google Chrome Version 100.0.4896.88 (Official Build) (64-bit)
@yisibl
Copy link
Member

yisibl commented Apr 15, 2022

你的图标中包含渐变,目前还不支持。详见:#1938

  <defs>
    <linearGradient id="linear-gradient" x1="-4.333" y1="-23.122" x2="-4.311" y2="-23.154" gradientUnits="objectBoundingBox">
      <stop offset="0" stop-color="#e30c34"/>
      <stop offset="1" stop-color="#b7062c"/>
    </linearGradient>
  </defs>

@yisibl yisibl closed this as completed Apr 18, 2022
@cw1997
Copy link
Author

cw1997 commented Apr 19, 2022

你的图标中包含渐变,目前还不支持。详见:#1938

  <defs>
    <linearGradient id="linear-gradient" x1="-4.333" y1="-23.122" x2="-4.311" y2="-23.154" gradientUnits="objectBoundingBox">
      <stop offset="0" stop-color="#e30c34"/>
      <stop offset="1" stop-color="#b7062c"/>
    </linearGradient>
  </defs>

谢谢回覆,请问后续会支持渐变吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants