MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Skia 前置插件,用于图片编码,附带 GIF 编码器

    插件发布
    8
    23
    2278
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cssxsh
      cssxsh last edited by cssxsh

      Mirai Skia Plugin

      Mirai Skia 前置插件

      maven-central
      test

      Be based on https://github.com/JetBrains/skiko

      SkiaToMirai

      SkiaToMirai
      SkiaExternalResource

      Example

      Example

      GIF

      由于 Skiko 没有携带 GIF 编码器,
      这里提供两个实现

      • kotlin
      • rust (Base on JNI)
      1 Reply Last reply Reply Quote 2
      • Referenced by  cssxsh cssxsh 
      • tamamoimoto
        tamamoimoto last edited by cssxsh

        This post is deleted!
        cssxsh 1 Reply Last reply Reply Quote 0
        • cssxsh
          cssxsh @tamamoimoto last edited by cssxsh

          @tamamoimoto 在 Skia 前置插件,用于图片编码,附带 GIF 编码器 中说:

          java.lang.Error: Unknown arch arm

          是 64位的arm 系统吗,对于 linux 这个插件只支持 Linux-X64 和 Linux-Arm64
          我记得 64 位arm 会标记为 aarch64

          1 Reply Last reply Reply Quote 0
          • tamamoimoto
            tamamoimoto last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • D
              D23333木湛威 last edited by

              用的win系统,还是有报错了
              QQ图片20220712205324.png
              QQ图片20220712205630.png

              tsudzuki 1 Reply Last reply Reply Quote 0
              • tsudzuki
                tsudzuki 摸鱼 @D23333木湛威 last edited by

                @D23333木湛威 能加载Mirai Native说明你使用的是32位jvm,skia并不支持,请切换为64位

                D 1 Reply Last reply Reply Quote 0
                • D
                  D23333木湛威 @tsudzuki last edited by

                  @tsudzuki 啊,好的谢谢

                  1 Reply Last reply Reply Quote 0
                  • C
                    Ckey last edited by

                    系统版本 Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0 x86_64)运行的时候报错

                    EY_8)EU~Y@DTW$O$UZ_US8W.png

                    1 Reply Last reply Reply Quote 0
                    • C
                      Ckey last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • C
                        Ckey last edited by Ckey

                        1.png
                        发现是因为插件下载libgif-linux-x64所用的镜像站使用的是Cloudflare的DNS,导致下载下来的并非.so文件,而是这个拦截页面,能否提供一下libgif-linux-x64.so文件的下载地址,我手动传入

                        cssxsh 1 Reply Last reply Reply Quote 0
                        • cssxsh
                          cssxsh @Ckey last edited by

                          @Ckey
                          https://github.com/cssxsh/gif-jni/releases/tag/v2.0.0

                          1 Reply Last reply Reply Quote 0
                          • H
                            heartalborada-del last edited by heartalborada-del

                            系统版本 Ubuntu 18.04.5 LTS 启动时报错,能帮忙看下吗?感谢!

                            image.png

                            cssxsh 1 Reply Last reply Reply Quote 0
                            • cssxsh
                              cssxsh @heartalborada-del last edited by

                              @heartalborada-del

                              日志说的很清楚 缺少依赖库 glibc 2.28

                              H 1 Reply Last reply Reply Quote 0
                              • H
                                heartalborada-del @cssxsh last edited by

                                @cssxsh 我现在知道了,是我软连接没搞上(捂脸)

                                1 Reply Last reply Reply Quote 0
                                • Z
                                  znc15 last edited by

                                  https://paste.ubuntu.com/p/WTHDhZZj8r/
                                  Ubuntu 20.04.4 LTS aarch64(Py3.7.8)
                                  报错能帮忙看一下吗,谢谢

                                  cssxsh 1 Reply Last reply Reply Quote 0
                                  • cssxsh
                                    cssxsh @znc15 last edited by

                                    @znc15
                                    https://github.com/cssxsh/mirai-skia-plugin/issues/13
                                    正在尝试解决中

                                    LTHPKBTE created this issue in cssxsh/mirai-skia-plugin

                                    closed java.lang.UnsatisfiedLinkError: libgif-linux-arm64.so: undefined symbol: XML_ErrorString #13

                                    cssxsh 1 Reply Last reply Reply Quote 0
                                    • cssxsh
                                      cssxsh @cssxsh last edited by

                                      备份一些字体

                                      方正书宋简体.ttf
                                      方正仿宋简体.ttf
                                      方正楷体简体.ttf
                                      方正黑体简体.ttf

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        bozi03 last edited by

                                        image.png大佬这个问题怎么解决,能帮忙看一下吗

                                        cssxsh 2 Replies Last reply Reply Quote 0
                                        • cssxsh
                                          cssxsh @bozi03 last edited by cssxsh

                                          @bozi03
                                          你都已经能打开了为什么还截图?为什么不把文本直接贴进来

                                          1 Reply Last reply Reply Quote 0
                                          • cssxsh
                                            cssxsh @bozi03 last edited by

                                            @bozi03

                                            从 FT_Get_Var_Axis_Flags 来看,你可能需要升级 freetype

                                            B 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact