Skip to content

Instantly share code, notes, and snippets.

View GeniJaho's full-sized avatar
🏠
Working from home

Geni Jaho GeniJaho

🏠
Working from home
View GitHub Profile
@GeniJaho
GeniJaho / 5-image-convertion.php
Created November 9, 2021 20:30
5 - Image convertion
<?php
...
private const TEMP_HEIC_STORAGE_DIR = 'app/heic_images/';
protected function convertHeic(UploadedFile $file): \Intervention\Image\Image
{
$extension = $file->getClientOriginalExtension();
// Generating a random filename, and not using the image's