zalsaeed / cgav

Certificate Generation and Verification
GNU General Public License v3.0
4 stars 2 forks source link

fix the preview process to be blatant fast #21

Closed zalsaeed closed 4 months ago

zalsaeed commented 7 months ago

Regardless of the speed of generating the certificate, the preview must be very fast. Generating images instead of PDFs could be a solution.

ralhazmi commented 6 months ago

What should we do to complete this task? In this task I use Pillow Library to generate Image for preview , draw the template inside it , write the certificate content with specific x,y positions ,colors and font on it.

Addressing the following subtasks will ensure successful completion of the task:

ralhazmi commented 4 months ago

The library used was changed from Pillow to matplotlib so that the format of the certificate in preview matches the actual certificate generated and to preserve the properties and features of the file as PDF, as the matplotlib library has proven its effectiveness in this task.