Rostislav Wolny
b851f282f5
Save URL of thumbnail after saving original before compression
...
This change was done in order to prevent cron being stuck on
the image thumbnails job because a huge image may cause cause
we exceed memory limits
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
dd0a19a314
Add BC for importing older exported templates
...
We allow exporting templates as JSON and templates exported from the older plugin versions use thumbnail key for storing the image data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
5134713c2d
Optimize memory usage for batch processing of template images
...
NewsletterTemplateEntity carries base64 data of image. This commit changes how we load templates entities when we process thumbnail images so that there is only one template in memory.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
ab23b06ff8
Use random hash in template image filename
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b10bb31321
Add cron job for generating/re-generating template thumbnail files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
58bcca67ed
Allow saving only base64 encoded jpeg
...
The tool that we use on the frontend generates jpegs. This check adds a protection against saving different type of data.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
6cfcf4b5b5
Add image compression when saving the newsletter template image
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
aed122f4a2
Update domain of the thumbnail in case the site domain changed
...
This handle cases when admin changes the site URL.
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
2bb74c6302
Add service for saving templates base64 data to image files
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Rostislav Wolny
b51f7b2d0e
Save new templates image data to the new columns
...
[MAILPOET-2686]
2021-11-08 13:24:53 +01:00
Pavel Dohnal
9e8ccd2c17
Use native array_column
...
[MAILPOET-3173]
2020-10-12 10:10:03 +02:00
Lysy Jan
1a1a8c4887
Display Recently sent first in the email template selection
...
Fixes : #2963
[MAILPOET-2087]
2020-08-05 15:15:09 +02:00
Jan Jakeš
86a24ad674
Use PHPStan generics
...
[MAILPOET-2900]
2020-05-25 17:49:07 +02:00
Jan Jakeš
7e60e9ba7e
Make NewsletterTemplateEntity name mandatory
...
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
Jan Jakeš
a88cc069a7
Implement NewsletterTempates::cleanRecentlySent() API using Doctrine
...
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
Jan Jakeš
e9ae4df4bc
Remove 'description' from newsletter templates, it's not used anymore
...
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
Jan Jakeš
32f5777945
Implement NewsletterTempates::save() API using Doctrine
...
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
Jan Jakeš
29ebd113b5
Implement NewsletterTempates::getAll() API using Doctrine
...
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00
Jan Jakeš
a50a23c0e2
Add NewsletterTemplateEntity and repository
...
[MAILPOET-2647]
2020-03-23 00:33:40 +01:00