You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rockfarmor opened this issue
Dec 1, 2024
· 3 comments
Labels
bugIssues that report (apparent) bugs.textIssues dealing with TextClip, SubtitlesClip, or handling of text in general.v2.xIssues based on MoviePy version 2.0 and upwards
rockfarmor
changed the title
When applying Stroke to a TextClip, some parts of the stroke is missing
MoviePy2: When applying Stroke to a TextClip, some parts of the stroke is missing
Dec 1, 2024
keikoro
added
text
Issues dealing with TextClip, SubtitlesClip, or handling of text in general.
v2.x
Issues based on MoviePy version 2.0 and upwards
labels
Dec 8, 2024
Hi, this one as well as the two other related issues should be fixed with the merging of the pr #2326.
Please try using the current master branch and tell me if things are better.
tl;dr: Considering you use the same settings, for a same number of line, the height of TextClip will always be the same. It might seem a bit to big, but it will be reliable and correctly aligned.
For everyone to understand how the new version works:
If you use label method and let the size of the TextClip be auto-calculated, the resulting clip will be of the maximum possible size the text could be. Meaning the TextClip size will be calculated as if your first and last line both contains characters with ascent (e.g an upper letter with some kind of accent) and descent (e.g y, p, j, g, etc.).
If your first and last line does not include such characters, your TextClip could be bigger than the real size of your text. Its not perfect, but its reliable.
Although I haven't made a particularly detailed comparison to check if there are differences between the current version and v1.0, the issues of text cropping and incorrect alignment have indeed been resolved at present. Thank you very much for your work.
bugIssues that report (apparent) bugs.textIssues dealing with TextClip, SubtitlesClip, or handling of text in general.v2.xIssues based on MoviePy version 2.0 and upwards
Expected Behavior
When displaying a TextClip with stroke, the entire TextClip (including the stroke) should be visible without the need of adding a margin.
This image was rendered using margin=(10,10) on the TextClip.
Actual Behavior
When displaying a TextClip with stroke, parts of the stroke isn't rendered since it's outside of the TextClip's bounding box
This might be intentional (Or separate issue), but it looks like the text isn't properly centered within the TextBox bounding box.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: