imaginary icon indicating copy to clipboard operation
imaginary copied to clipboard

wartermark text not support chinese

Open duke-git opened this issue 4 years ago • 4 comments

hi, when I wartermark the image with chinese, the text can't display. Does it support only english wartermark text ? image

duke-git avatar Nov 15 '21 07:11 duke-git

Ah~~ Came here for the same reason.

I'm running imaginary from a server that has Chinese fonts (notos) and supports Chinese/UTF8 characters, but this is what I got :

image

The underlying libvips doesn't have such problem, thus I'm thinking the problem is somewhere between imaginary and bimg.

@duke-git, have you figured out a solution to the problem yet please?

suntong avatar Dec 01 '23 16:12 suntong

@suntong no, I don't use this library anymore.

duke-git avatar Dec 03 '23 11:12 duke-git

Oh, thanks for the reply @duke-git

I finally got it working:

image

If anyone want to know how to do it, let me know.

suntong avatar Dec 04 '23 04:12 suntong

The container lacks font support for Chinese; to fix it, follow these steps:

docker exec -u 0 -it <container_id_or_name> bash apt update && apt upgrade -- To install font support for Chinese, for example, fonts-wqy-zenhei apt -y install xfonts-utils fontconfig fonts-wqy-zenhei cd /usr/share/fonts && mkfontscale && mkfontdir && fc-cache

zhanghao1949 avatar Apr 10 '24 08:04 zhanghao1949