mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: add support for png
feat: add tests chore: update dependencies
This commit is contained in:
parent
f1fafe7ef0
commit
b4dea89fad
6 changed files with 250 additions and 94 deletions
|
|
@ -35,7 +35,7 @@ new class extends Component {
|
|||
@php
|
||||
$current_image_uuid =$device->current_screen_image;
|
||||
if($current_image_uuid) {
|
||||
file_exists('storage/images/generated/' . $current_image_uuid . '.png') ? $file_extension = 'png' : $file_extension = 'bmp';
|
||||
$file_extension = file_exists(storage_path('app/public/images/generated/' . $current_image_uuid . '.png')) ? 'png' : 'bmp';
|
||||
$current_image_path = 'storage/images/generated/' . $current_image_uuid . '.' . $file_extension;
|
||||
} else {
|
||||
$current_image_path = 'storage/images/setup-logo.bmp';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue