verot/class.upload.php

Text crop

ad-Ham opened this issue · 4 comments

Text is cropped. What should I do?
RyfQ0ycDOEY

verot commented

What is your code? Do you have a reproducible test case?

What is your code? Do you have a reproducible test case?

I can't send you the whole project with framework, but here is some of it. Problem is only on Linux server. Windows pc is OK

$img = new \Verot\Upload\Upload($imgPath, 'ru_RU'); 
$img->image_text = '2022-08-30'; 
$img->image_text_x = 794; 
$img->image_text_y = 723; 
$img->image_text_color = '#132D66'; 
$img->image_text_size = 26; 
$img->file_new_name_body = $fileName; 
$img->image_text_padding = 5; 
$img->image_text_font = 'E:/Inter/static/Inter-Regular.ttf'; 
$img->file_overwrite = true; 
$img->process($imgProcessedPath);
verot commented

Can you try with the latest version? I just uploaded a new version with a fix in c06fbee

Can you try with the latest version? I just uploaded a new version with a fix in c06fbee

Now everything is OK. Thanks a lot, mate