PHP Image Plugin

PHP Image Plugin

[ad_1]

To get this product on 50 % contact me on this link

 

LIVE PREVIEWBUY FOR $7

This plugin contains a number of picture associated capabilities. You can modify a picture (resize, crop, scale), get data (dimensions, sort & file measurement), or mechanically create a show or an inventory of all photographs in a given listing. Most of the lessons require that GD be enabled in PHP, in any other case there’s not any particular necessities. The examples on this web page are utilizing static photographs, and the returned knowledge simulated as CodeCanyon clearly doesn’t permit operating PHP scripts on this web page. Visit the example page to see the photographs really being modified on the fly.

Image Info

This will return primary information a couple of particular picture together with picture sort, width, peak and measurement (in bytes, kilobytes and megabytes).

echo $image->information('img/swirly.png');

Result

  • Image sort: png
  • Width: 1920
  • Height: 1280
  • Size in bytes: 1285926
  • Size in kilobytes: 1285.93
  • Size in megabytes: 1.29

Image Scale

The perform will scale a picture proprtionally to a particular width. Example resizes 1920×1280 picture to 300 pixels huge.

$image->scale('img/swirly.png', $dest='img/scale.png', $width=300);

Result

PHP Image Plugin - 1

Image Resize

The perform will resize a picture to a particular width and peak (will not be proportional). Example resizes 1920×1280 picture to 200×300.

$image->resize('img/swirly.png', $dest='img/resize.png', $width=200, $peak300);

Result

PHP Image Plugin - 2

Image Crop

This crops a picture to particular dimensions. In this instance the unique 1920×1280 picture is cropped to 690×770 (400px from the left and 300px from the highest).

$image->crop('swirly.png',$dest='crop.png',$x=400,$y=300,$width=690,$peak=770);

Result

PHP Image Plugin - 3

Image Contents

This closing perform will create an inventory of all photographs inside a given listing. You can select to show it both as a textual listing, or to really show all the photographs (with an non-obligatory max-width setting).

Text List

The default settings will output a textual content listing of all photographs in a listing. By default every picture can be enclosed in anchor tags linking to the file, proceeded by a line smash “
”. If you favor, you’ll be able to set $line_smash to false and also you’ll get a coma separated listing as an alternative. If you simply wish to show an inventory with out linking to the file, set $hyperlink to false.

$image->contents('dirname');
Result

PHP Image Plugin - 4

Visual List

Instead of simply itemizing the photographs in a listing, you can too select to show the precise photographs. There’s a max-width setting (set to 160px within the instance) if you wish to hold the photographs from getting too enormous. Each picture additionally has a category of “img_list” if you wish to do any further styling with css. Finally, there’s additionally a “root” setting in case you want modify the show location. For instance, my CodeIgniter URI rewritting can typically confuse issues (with the browser and php searching for the file at completely different places), so I want to switch the show path on this web page.

$image->contents('dirname',$listing='picture',$hyperlink=true,$line_smash=false,$max_width='160')
Result

PHP Image Plugin - 5

Array List

The closing possibility will return the listing as an array as an alternative of displaying the info so that you’re free to format it nevertheless you want.

print_r($image->contents('dirname', $listing='array'))

/* Data returned by the picture contents array */
Array
(
    [0] => colourful.jpg
    [1] => subject.jpg
    [2] => pirate.jpg
    [3] => planet.jpg
    [4] => tado.jpg
    [5] => twister.jpg
    [6] => turtle.jpg
    [7] => water.jpg
)

More Files From the PHP Plugin Suite


Bitly


Image Plugin


Map + Weather Plugin


Twitter Plugin


Video Plugin


Weather Plugin

pose css

[ad_2]

To get this product on 50 % contact me on this link

 

Source

Pomento
Logo
Register New Account
Compare items
  • Total (0)
Compare
0
Shopping cart