Skip to content

Commit

Permalink
avoid text truncation for captions (ImageMagick/ImageMagick#7304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed May 12, 2024
1 parent 2605fc7 commit 78139cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coders/caption.c
Expand Up @@ -328,7 +328,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
high=draw_info->pointsize-0.5;
}
if (status != MagickFalse)
draw_info->pointsize=floor((low+high)/2.0-0.5);
draw_info->pointsize=floor(low-0.5);
}
/*
Draw caption.
Expand Down
2 changes: 1 addition & 1 deletion coders/label.c
Expand Up @@ -269,7 +269,7 @@ static Image *ReadLABELImage(const ImageInfo *image_info,
high=draw_info->pointsize-0.5;
}
if (status != MagickFalse)
draw_info->pointsize=floor((low+high)/2.0-0.5);
draw_info->pointsize=floor(low-0.5);
}
label=DestroyString(label);
if (status == MagickFalse)
Expand Down

0 comments on commit 78139cf

Please sign in to comment.