Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pos badge printing #32

Merged
merged 14 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN COMPOSER_ALLOW_SUPERUSER=1 | composer require tightenco/ziggy:^2 --ignore-pl
FROM node:20-alpine as vite
WORKDIR /app
COPY package.json package-lock.json tailwind.config.js vite.config.js postcss.config.js ./
RUN npm ci
RUN npm install --force
COPY ./resources /app/resources
COPY --from=vite-vendor-build /app/vendor/tightenco/ziggy /app/vendor/tightenco/ziggy
RUN npm run build
Expand Down
9 changes: 3 additions & 6 deletions app/Badges/Bases/BadgeBase_V1.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@

use Imagine\Gd\Font;
use Imagine\Gd\Imagine;
use Imagine\Image\Point;
use App\Models\Badge\Badge;
use Imagine\Image\Palette\RGB;
use Imagine\Image\ImageInterface;
use Imagine\Image\PointInterface;
use Imagine\Image\Palette\Color\ColorInterface;

class BadgeBase_V1
Expand All @@ -18,15 +15,15 @@ class BadgeBase_V1
protected Imagine $imagine;

// Standart Werte
protected int $height_px = 638;
protected int $width_px = 1013;
protected int $height_px = 648;
protected int $width_px = 1024;
protected string $font_color = '#FFFFFF';
protected string $font_path = '';
protected string $file_format = 'png';

public function init()
{
$this->imagine = new Imagine;
$this->imagine = new Imagine();

$new_text_color = new RGB();
$this->text_color = $new_text_color->color($this->font_color);
Expand Down
Loading
Loading