Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Spatie\Image\Image;
- use Spatie\Image\Enums\AlignPosition;
- use Spatie\Image\Enums\Unit;
- Image::load(storage_path('app/public/input.jpg'))
- // 1. Größe anpassen (Fit kombiniert Resize & Crop)
- ->fit(800, 600)
- // 2. Text mit Hintergrund hinzufügen
- // Spatie erlaubt es, Text-Eigenschaften in einer Closure zu definieren
- ->text('Ihr Text hier', function($font) {
- $font->file(public_path('fonts/Roboto-Bold.ttf'))
- ->size(40)
- ->color('ffffff')
- ->width(700) // Maximale Breite des Textblocks
- ->align(AlignPosition::Center)
- // Hier tricksen wir: Der Hintergrund wird direkt am Text ausgerichtet
- ->background('rgba(0, 0, 0, 0.6)')
- ->padding(20); // Abstand zwischen Text und Hintergrundbox
- })
- // Position des Textblocks auf dem Gesamtbild
- ->textPosition(AlignPosition::Bottom)
- ->save(storage_path('app/public/output.jpg'));
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=hfuyvozwyi
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment