AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[svg](computer)

Martin Hope
lukehawk
Asked: 2023-12-20 00:07:16 +0800 CST

为什么我无法使用此 SVG 路径创建孔?

  • 6

这是 SVG 路径。我期待形状上有一个洞,但它似乎不起作用。我不明白为什么:

M70,20 L80,35 75,45 90,55 95,50 105,60 85,80 90,90 80,100 50,70 45,70 30,55 50,30 55,35 z M65,50 L80,70 75,75 55,60 z
svg
  • 1 个回答
  • 24 Views
Martin Hope
Shailesh Joshi
Asked: 2021-10-12 02:09:31 +0800 CST

Inkscape SVG 变换

  • 6

我正在尝试用 Inkscape 打开一个 svg 文件。svg 元素具有变换属性。任何浏览器都可以毫无问题地显示图像。然而,当 Inkscape 打开图像时,所有的元素变换都被忽略了,所有的元素都被绘制在一个位置。

有人可以建议我如何强制 Inkscape 考虑转换吗?

inkscape svg
  • 1 个回答
  • 86 Views
Martin Hope
Robert Dodier
Asked: 2021-02-13 14:32:48 +0800 CST

使用当前版本在 MS Word for Mac 中导入 SVG,使用旧版本查看

  • 5

我有一些 SVG 图,我发现 MS Word for Mac,版本 16.16.10(版权所有 2018)可以成功导入 SVG。到目前为止,一切都很好。

对于任何平台,旧版本的 MS Word 是否能够查看包含导入的 SVG 的文档?或者是否有必要拥有支持 SVG 的 MS Word 版本?

我猜它的核心是 MS Word 是否在导入时将 SVG 转换为非 SVG 格式。我对此一无所知,但如果有人知道,我很想听听。

我要避免的主要问题是,如果我创建了一个对我来说看起来正确的文档,那么使用旧版本 MS Word 的人就无法正确查看图像。

microsoft-word svg
  • 1 个回答
  • 236 Views
Martin Hope
0x90
Asked: 2020-04-22 08:52:12 +0800 CST

使用 Potrace 时如何保持颜色?

  • 10

我有一个.ppm彩色文件,当我运行Potrace时:

potrace -s file.ppm

它只返回一个黑白.svg文件。如果我在inkspace上这样做,它会保留颜色。

如果它有帮助,这是xxd | head文件的.ppm:

$ xxd file.ppm | head
00000000: 5036 0a31 3030 3020 3130 3030 0a32 3535  P6.1000 1000.255
00000010: 0add dddd bbbb bbbb bbbb bbbb bbbb bbbb  ................
00000020: bbbb bbbb bbbb bbbb bbbb bbbb bbbb bbbb  ................
00000030: 7900 bb89 2fbb bbbb bbbb bbbb bbbb bbbb  y.../...........
00000040: bbbb bbbb bbbb bbbb bbbb bbbb bbbb bbbb  ................
00000050: bbbb bbbb bbbb bbbb bbbb bbbb 8787 872e  ................
00000060: 2e2e 2b2b 2b3b 3b3b 4545 453d 3d3d 4545  ..+++;;;EEE===EE
00000070: 4550 5050 7f7f 7fbb bbbb bbbb bbbb bbbb  EPPP............
00000080: bbbb bbbb bbbb bbbb bbbb bbbb bbbb bbbb  ................
00000090: bbbb bbbb bbb1 b1b1 8181 8164 6464 7575  ...........ddduu

如果不是,我们如何通过命令行使用 Inkscape。

svg
  • 1 个回答
  • 1950 Views
Martin Hope
Métoule
Asked: 2020-03-21 02:15:00 +0800 CST

Inkscape:保存没有漂亮打印的svg文件?

  • 7

我有一个从 Powerpoint 创建的 SVG 文件,现在我想在 Inkscape 中进行编辑。在 Inkscape 中打开并保存该文件时,不进行任何修改,文件大小从 120kB 变为 170kB(我将其保存为纯 SVG,而不是 Inkscape SVG)。

据我所知,这是因为 Inkscape 生成的 SVG 打印得很漂亮,因此有很多无用的空白。有没有办法在没有漂亮打印的情况下保存 SVG 文件?

例如,原始文件的这一部分:

<linearGradient x1="272" y1="618" x2="272" y2="643" gradientUnits="userSpaceOnUse" spreadMethod="reflect" id="fill25"><stop offset="0" stop-color="#D2D2D2"/><stop offset="0.5" stop-color="#C8C8C8"/><stop offset="1" stop-color="#C0C0C0"/></linearGradient>

保存为

<linearGradient
   id="fill1"
   spreadMethod="reflect"
   gradientUnits="userSpaceOnUse"
   y2="159"
   x2="272"
   y1="134"
   x1="272">
  <stop
     id="stop6277"
     stop-color="#D2D2D2"
     offset="0" />
  <stop
     id="stop6279"
     stop-color="#C8C8C8"
     offset="0.5" />
  <stop
     id="stop6281"
     stop-color="#C0C0C0"
     offset="1" />
</linearGradient>
inkscape svg
  • 1 个回答
  • 221 Views
Martin Hope
g2mk
Asked: 2020-03-19 11:26:38 +0800 CST

Inkscape:将对象克隆到其他文件

  • 5

在 Inkscape/SVG 中是否可以在文件之间进行对象克隆 ( Alt+ )?D

inkscape svg
  • 1 个回答
  • 208 Views
Martin Hope
Anthony Kong
Asked: 2020-01-15 23:20:11 +0800 CST

如何将svg结果转换为png?

  • 6

我正在使用这个包来生成序列图

https://github.com/francoislaberge/diagrams

这是一个非常简单的序列图文件:

  Alice->Bob:Hello

我运行了这个命令

 diagrams sequence test.sequence test.svg

该diagrams实用程序会生成一个 svg 文件

在此处输入图像描述

然后我想把它转换成png格式

convert a.svg a.png

但是它会发出此错误消息:

转换:不合格的绘图图元定义`,'@error/draw.c/RenderMVGContent/4430。

它是png文件

在此处输入图像描述

无论如何我可以解决这个问题吗?

这是一些版本信息:

$ convert -version
Version: ImageMagick 7.0.9-16 Q16 x86_64 2020-01-12 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(3.1)
Delegates (built-in): bzlib freetype heic jng jp2 jpeg lcms ltdl lzma openexr png tiff webp xml zlib

操作系统是 MacOS Mojave

编辑:

根据@harrymc 的评论,我尝试将 svg 文件添加到问题中。但是,图像托管服务不接受 svg 文件。我将这里的 xml 直接粘贴到 svg 文件中:

<svg height="174" version="1.1" width="176.796875" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow: hidden; position: relative;"><desc style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Created with Raphaël 2.1.4</desc><defs style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path><marker id="raphael-marker-endblock55-obj19" markerHeight="5" markerWidth="5" orient="auto" refX="2.5" refY="2.5" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"><use xlink:href="#raphael-marker-block" transform="rotate(180 2.5 2.5) scale(1,1)" stroke-width="1.0000" fill="#000000" stroke="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></use></marker></defs><rect x="10" y="20" width="68" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="20" y="39" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Alice</tspan></text><rect x="10" y="116" width="68" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="20" y="135" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Alice</tspan></text><path fill="none" stroke="#000000" d="M44,58L44,116" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path><rect x="98" y="20" width="48.796875" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="107.9921875" y="39" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Bob</tspan></text><rect x="98" y="116" width="48.796875" height="38" rx="0" ry="0" fill="#ffffff" stroke="#000000" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></rect><text x="107.9921875" y="135" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Bob</tspan></text><path fill="none" stroke="#000000" d="M122.3984375,58L122.3984375,116" stroke-width="2" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path><text x="59.19921875" y="83" text-anchor="start" font-family="Andale Mono, monospace" font-size="16px" stroke="none" fill="#000000" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-family: &quot;Andale Mono&quot;, monospace; font-size: 16px;"><tspan dy="6" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">Hello</tspan></text><path fill="none" stroke="#000000" d="M44,96C44,96,100.13640903495252,96,117.4049332986342,96" stroke-width="2" marker-end="url(#raphael-marker-endblock55-obj19)" stroke-dasharray="none" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path></svg>
png svg
  • 1 个回答
  • 1053 Views
Martin Hope
lmsm3
Asked: 2019-06-28 14:14:40 +0800 CST

Inkscape:带对象的完整路径

  • 5

示例:我有一个圆圈,上面有一个路径。

路径在两端接触圆并在圆内形成某种形状。我现在想用圆的边缘来完成形状,这样形状就完成了一个整体。

我该怎么做?如果我的描述不好,请参阅示例图片。

之前和我想要的

inkscape svg
  • 1 个回答
  • 35 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve