小编Mat*_*Cat的帖子

如何使用PNG的IDAT块?

我试图了解数据如何存储到IDAT块中.我正在写一个小PHP类,我可以检索大部分的块信息,但我得到的IDAT与我的图像的像素不匹配:

在此输入图像描述 它是2×2px truecolour with alpha(bitdepth 8).

但是当我解释这样的IDAT数据时:

current(unpack('H*',gzuncompress($idat_data)));
Run Code Online (Sandbox Code Playgroud)

我明白了

00000000ffffff00ffffff000000

我不明白它是如何匹配像素的.或者是我的代码破坏了数据?

谢谢你的帮助!

编辑:我明白了

08d705c101010000008010ff4f1750a93029e405fb

作为十六进制压缩数据,因此在解压缩后我似乎丢失了几个字节.

在此输入图像描述

php png chunks

9
推荐指数
1
解决办法
1万
查看次数

如何防止CKEditor替换空格 ?

我正面临着CKEditor 4的问题,我需要一个没有任何html实体的输出,所以我config.entities = false;在我的配置中添加了,但有些 出现在

  • 插入内联标记:替换为之前的空格  
  • 粘贴文本:每个空格都被替换为 偶数config.forcePasteAsPlainText = true;

您可以通过键入来检查任何演示

试验测试

例如.

你知道我怎么能防止这种行为吗?

谢谢!

ckeditor

9
推荐指数
2
解决办法
2万
查看次数

无法解码OpenType Roboto

我按照google/roboto存储库中的说明进行操作,但没有任何OTF文件可用作webfont.

我能得到的唯一反馈是Chrome说无法解码下载的字体.

OTS说一切都很好.

为什么这样,我如何在网络上使用Roboto opentype功能?

仅供参考我也开了google/roboto#283

以下是生成的字体之一:https://drive.google.com/open?id = 157_ -UBTyswylqY3DOK-mKihd7Vk-vFA_

fonts opentype webfonts roboto

5
推荐指数
1
解决办法
804
查看次数

无法在 Docker alpine:3.7 上安装 pecl

pecl install xdebug在 alpine 3.7 镜像构建或容器中运行(或任何其他包)总是会导致

检查 C 编译器是否工作...否

有人知道发生了什么吗?这是相关的 config.log:

configure:2695: $? = 0
configure:2684: cc -v >&5
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alpine-linux-musl/6.4.0/lto-wrapper
Target: x86_64-alpine-linux-musl
Configured with: /home/buildozer/aports/main/gcc/src/gcc-6.4.0/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --target=x86_64-alpine-linux-musl --with-pkgversion='Alpine 6.4.0' --enable-checking=release --disable-fixed-point --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --disable-symvers --enable-__cxa_atexit --enable-default-pie --enable-cloog-backend --enable-languages=c,c++,objc,java,fortran,ada --disable-libssp --disable-libmpx --disable-libmudflap --disable-libsanitizer --enable-shared --enable-threads --enable-tls --with-system-zlib --with-linker-hash-style=gnu
Thread model: posix
gcc version 6.4.0 (Alpine 6.4.0) 
configure:2695: $? = 0
configure:2684: cc -V >&5
cc: error: unrecognized command line option …
Run Code Online (Sandbox Code Playgroud)

gcc pecl docker alpine-linux

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

alpine-linux ×1

chunks ×1

ckeditor ×1

docker ×1

fonts ×1

gcc ×1

opentype ×1

pecl ×1

php ×1

png ×1

roboto ×1

webfonts ×1