-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible to line break a big string? #14
Comments
i wasnt having luck with the batch mode. maybe i was screwing it up. ill give this flow a try. the images varied in size. but odds are it was so slow because it was looping though the edit node multiple times |
this does look like it will work. but i meant is it possible to break a single large string without a batch. say the following was the string. have the node have an option "break on" setting. so if it sees \n it would split then. it could even just work like a batch but would be another way of adding the lines to pics. instead of making multiple payloads. you just send the string and a thing to split on. str =
not sure if thats doable or what. but knowing how the batch works is enough now. thanks |
I guess you have tried adding \n and it didn't work? If it doesn't then it's likely a shortcoming of the underlying jimp library. |
OK, i have added a workaround in the node (would be nice if the jimp library did this but it doesnt Demo...flow...
I'll publish an update soon to here and NPM (for node-red) |
Final testing before publish...
|
Updated NPM and Flows Library. Please test and re-open if no good. Thanks for your feedback |
i played with the new update a tiny bit and it looks perfect. ill do some more with it and if there is an issue ill let you know. thank you very much this would simplify things a lot. |
is it possible to add line breaks to the node? i have several lines taht need to be written to an image and the only way i can figure out how to do it, is to use multiple image nodes in a chain and write each line that way. it takes like 20 seconds to go through all the nodes. for about 10 lines
The text was updated successfully, but these errors were encountered: