PHP Classes

PHP Deep Fry: Apply an effect to an image to make it look fried

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 99 This week: 1All time: 9,793 This week: 571Up
Version License PHP version Categories
php-deep-fry 1.0.0MIT/X Consortium ...5PHP 5, Graphics
Description 

Author

This class can be used to apply an effect to an image to make it look fried.

It takes the path of an image file as parameter and creates a new image based on that applying a visual effect that makes it look like as if it was fried.

The resulting image may be stored in another file or be served for download.

Innovation Award
PHP Programming Innovation award nominee
November 2019
Number 10
Frying is a visual effect that can be applied to an image to make it look as if it was burned with some kind of heat source.

This class can process an image and alter its appearance to make it look as the subjects on the image were fried.

Manuel Lemos
Picture of Miraz Mac
  Performance   Level  
Name: Miraz Mac <contact>
Classes: 13 packages by
Country: Bangladesh Bangladesh
Age: 29
All time rank: 201629 in Bangladesh Bangladesh
Week rank: 33 Up1 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php

require '../vendor/autoload.php';

$fryer = new MirazMac\DeepFry\Fryer('meme.jpg');
$fryer->fry()
      ->
moreDeepNibba()
      ->
quality(20)
      ->
output();


Details

PHP Deep Fryer

A Deep Fryer written in PHP to cook some smokin' hot memes!

Installation

composer require mirazmac/php-deep-fry

Usage

First of all you need to create an instance of the fryer. The fryer expects path to a valid image file. For detailed usage check usage folder.

require '../vendor/autoload.php';

$fryer = new MirazMac\DeepFry\Fryer('meme.jpg');

// Fry
$fryer->fry()
     // Extreme!
      ->moreDeepNibba()
    // Lower quality results in better frying
      ->quality(20)
    // Output to the browser
    ->output();

Result

![](https://i.postimg.cc/x15MrtZY/preview.jpg)


  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Files folder imageusage (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file Fryer.php Class Class source

  Files folder image Files  /  usage  
File Role Description
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Image file meme.jpg Icon Icon image

 Version Control Unique User Downloads Download Rankings  
 100%
Total:99
This week:1
All time:9,793
This week:571Up