PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2019-11-20 (20 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 52 This week: 6All time: 9,638 This week: 58Up
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
Nominee
Vote
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
  Performance   Level  
Name: Miraz Mac <contact>
Classes: 9 packages by
Country: Bangladesh Bangladesh
Age: 25
All time rank: 252635 in Bangladesh Bangladesh
Week rank: 45 Up3 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 3x

 

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:52
This week:6
All time:9,638
This week:58Up