PHP Classes

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

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 99 All time: 9,818 This week: 206Up
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: 30
All time rank: 201429 in Bangladesh Bangladesh
Week rank: 240 Up6 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 (6)  
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 (6)  /  src  
File Role Description
  Plain text file Fryer.php Class Class source

  Files folder image Files (6)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:99
This week:0
All time:9,818
This week:206Up