bostrom/text-to-image

Add Custom image path support

Closed this issue · 9 comments

ycfay commented

if debug mode,Can you add save custom of picture path ?

Thanks

🎉 This issue has been resolved in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

ycfay commented

thanks。
Wish you a Happy New Year!

ycfay commented

Hi,firend,i find a new problem,If Chinese character,will overflow the image.

for example:冰雪经济又被叫做白色经济,它是指利用冰雪开展相关旅游项目和运动项目,逐渐形成一条经济链。伴随着2022年冬奥会热度以及国家政策的大力支持,我国冰雪产业已经驶入快车道。2019年,我国冰雪产业市场规模已经突破5000亿元。

This is an image

I don't know how Chinese works, but you don't seem to have any normal spaces? That's how this library breaks the lines, so without space characters, you're basically going to get one long line like you see in your example.

Maybe you can educate me as of how Chinese should be line-wrapped?

ycfay commented

I don't know how Chinese works, but you don't seem to have any normal spaces? That's how this library breaks the lines, so without space characters, you're basically going to get one long line like you see in your example.

Maybe you can educate me as of how Chinese should be line-wrapped?

:) thanks you reply.
Chinese characters don‘t need spaces,I'm trying.
I think need to calc the length of characters. If exceeds, we need to add be a line-wrapped。

Ok, so can a line be broken into two anywhere? Or are there some characters that always should stay together?

@ycfay let's continue the discussion in #193