Skip to content

MSI-6#6

Open
imPDA wants to merge 3 commits intodevfrom
feature/MSI-6_text_on_img
Open

MSI-6#6
imPDA wants to merge 3 commits intodevfrom
feature/MSI-6_text_on_img

Conversation

@imPDA
Copy link
Owner

@imPDA imPDA commented Jun 19, 2024

Added functionality to combine image and quotation

  • Implementation requires PIL library and external fonts (in most cases they are not present in OS by default)
  • Quotation placed in the center on white semitransparent rectangle, shape of rectangle depends on shape of image (flex container)
  • Font size automatically calculated depend on citation length
  • If citation is too long and calculated font size lower than certain value, exception raises -> can retry and get another citation
  • Generated image firstly saved to S3 in order to receive link to image be sent to teams

Other changes:

  • Changed big size threshold in pre-commit large-files hook to 600KB from 500KB, because of font file (~540KB)

Dmitry Patrushev added 3 commits June 17, 2024 04:36
- Implementation requires PIL library and external fonts (in most cases they are not present in OS by default)
- Quotation placed in the center on white semitransparent rectangle, shape of rectangle depends on shape of image (flex container)
- Font size automatically calculated depend on citation length
- If citation is too long and calculated font size lower than certain value, exception raises -> can retry and get another citation
- Generated image firstly saved to S3 in order to receive link to image be sent to teams

Other changes:
- Changed big size threshold in pre-commit large-files hook to 600KB from 500KB, because of font file (~540KB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant