mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: prefer png format on firmware versions >=1.5.2
This commit is contained in:
parent
cc63c8cce2
commit
ad5ff5d2c9
12 changed files with 215 additions and 27 deletions
|
|
@ -29,10 +29,9 @@ class GenerateScreenJob implements ShouldQueue
|
|||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
$newImageUuid = ImageGenerationService::generateImage($this->markup);
|
||||
$newImageUuid = ImageGenerationService::generateImage($this->markup, $this->deviceId);
|
||||
|
||||
Device::find($this->deviceId)->update(['current_screen_image' => $newImageUuid]);
|
||||
\Log::info("Device $this->deviceId: updated with new image: $newImageUuid");
|
||||
|
||||
if ($this->pluginId) {
|
||||
// cache current image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue