Monday, October 4, 2021

Comparing Images in PHP

Grafika can compare how similar two images are and can also determine if two images are equal.


https://kosinix.github.io/grafika/compare-images.html

Friday, October 1, 2021

Sunday, September 5, 2021

Laravel Testing Base64 Image Upload

Base64 image save function test 

public function test_save_product_image()
{
config(['filesystems.default' => 'test']);

Storage::fake('test');
$image = UploadedFile::fake()->image('image.png');
$imageBase64 = base64_encode(file_get_contents($image->path()));
    // Image save function
    $path = Base64Image::save($imageBase64);
Storage::disk('test')->assertExists($path);
}

Thursday, July 8, 2021

How to convert HTML page to inline css

 https://templates.mailchimp.com/resources/inline-css/